You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this happens because of StyleSheet.flatten(style), [style]) , I am not entirely sure why we allow styling the Link component at all, it's not it's responsibility. we should just pass the styles to the child directly.
Edit
I would actually prefer if the Link component didn't default to Text and enforced having a direct child. it should not have only navigation related props.
Minimal reproducible example
https://snack.expo.dev/@aeid/link-aschild-breaks-on-array-styles
Which package manager are you using? (Yarn is recommended)
pnpm
If the issue is web-related, please select the bundler (
web.bundler
in theapp.json
)None
Summary
Link component asChild prop breaks Pressable function styling.
works in sdk51 but not in sdk52.
this doesn't work in either sdk51 & sdk52
also keep in mind that Link styling types in sdk52 is not as flexible as it was in sdk51.
Environment
The text was updated successfully, but these errors were encountered: