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
<Stack.Screen
name="order"
options={{
headerTitle: route.params.title // NOT WORKING
animation: route.params.noAnimation ? 'none' : 'default', // NOT WORKING
headerLeft: (props) => headerBackIcon({ ...props, onPress: navigation.goBack }), // NOT WORKING
headerBlurEffect: undefined,
headerLargeStyle: undefined,
}}
/>
You can no longer access route and navigation when setting Stack.Screen options. I understand you can use useSearchParams() or useNavigation() at the top of the file but this will then be used for all the screens defined in this file which is quite dirty.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
How can I migrate this:
To:
You can no longer access route and navigation when setting Stack.Screen options. I understand you can use useSearchParams() or useNavigation() at the top of the file but this will then be used for all the screens defined in this file which is quite dirty.
Beta Was this translation helpful? Give feedback.
All reactions