-
-
Notifications
You must be signed in to change notification settings - Fork 31
Upgrade to React Navigation 6.x #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to React Navigation 6.x #47
Conversation
- upgraded package version from 5.2.0 to 6.0.0
Ok! I've got time to test it, and it work well, I migrated easily thank's to your work ^^
The only missing things I noted are header
and headerShown
params in BottomTabs
screenOptions
.
I think header
will need a bigger refactor because Header.t
is, for now, to tied to Stack
, maybe if we plan to update the binding to use the new @react-navigation/elements
package it can be doable. But not mandatory for now.
However it's easy to add ~headerShown: bool=?
to options
in BottomTabs
and I think it's mandatory for anyone using nested navigators.
Thanks @Freddy03h. The fix will follow shortly.
@MoOx do you want to test it too before we merge ?
No time atm. Let's merge this, I trust you :)
I followed https://reactnavigation.org/docs/upgrading-from-5.x, but there might be things that are not covered. However, this is enough for us to use React Navigation 6 in a not-so-small React Native (ReScript + TypeScript) app.
I upgraded package version from 5.2.0 to 6.0.0.
Closes #43