# Rows wrapped in <Link asChild> collapse to a tiny height

> Link's Slot merges the child's style with an object spread. The Pressable used a style function (style={({ pressed }) => ...}), and spreading a function gives {}, so the height was dropped.

Web page: https://davidewins.com/errors/link-aschild-function-style-dropped

React Native. Likely fix, 24 September 2026.

Versions: expo-router Link asChild, Pressable style function

There is no error message for this one, only the symptom in the title.

## Cause

Link's Slot merges the child's `style` with an object spread. The Pressable used a style function (`style={({ pressed }) => ...}`), and spreading a function gives `{}`, so the height was dropped. Only rows not wrapped in Link kept their height.

## Fix

Use a plain style object on the child of `<Link asChild>`, or drop Link and navigate with `router.push()` in onPress.

## More React Native errors

- [Screen crashes the whole app: Rendered more hooks than during the previous render](https://davidewins.com/errors/rules-of-hooks-usememo-after-early-return)
- [Feed shows an error state for every address: ReferenceError before initialization](https://davidewins.com/errors/tdz-const-used-in-map-before-declaration)
- [Screen crash: Maximum update depth exceeded](https://davidewins.com/errors/maximum-update-depth-competing-effects)
- [Reanimated crash on device: Tried to synchronously call a non-worklet function on the UI thread](https://davidewins.com/errors/worklet-calls-non-worklet-helper)
- [Pressable buttons render invisible: style function fill never applied](https://davidewins.com/errors/uniwind-pressable-double-wrap-drops-style)

[Search all errors](https://davidewins.com/errors)
