This repository was archived by the owner on Mar 17, 2025. It is now read-only.
Replies: 1 comment
-
|
Did you ever get any clarity here? Edit: after some searching around, the only answers I can find (here and here) is that using Link is a more accessible and semantically correct approach. If you're developing for mobile-only, it's likely less of an issue, but I'm not an accessibility guru, so who knows. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone, I'm a little confused about best practices when navigating inside my expo app using expo-router. Is there any reason to prefer wrapping a Button with versus passing router.push to the Button's onPress?
VS
<Button onPress={() => router.navigate('/other')}Wrapping with Link seems more cumbersome but it also seems to be what the docs suggest doing. Imperative routing is the way to go if navigating outside of a React component. However, in a React component, is there a reason to choose one over the other?
Beta Was this translation helpful? Give feedback.
All reactions