[DISCUSSION] upgrade Navigation [waiting for stability on NavigationExperimental]
See original GitHub issueUPDATE:
the repo mentioned below is no longer a good example considering all the breaking changes the folks at Facebook are making on the NavigationExperimental.
It is better to wait after 0.29
becomes stable to make any change on the navigation.
NavigationExperimental
has changes in 0.30
https://github.com/facebook/react-native/releases/tag/v0.30.0-rc.0
I think the current navigation could be improved and made it compatible with those changes. I was checking out this repo (whcih uses react-native
#master https://github.com/jlyman/RN-NavigationExperimental-Redux-Example/blob/master/package.json#L12):
and notice few nice things in my opinion:
- more actions (https://github.com/jlyman/RN-NavigationExperimental-Redux-Example/blob/master/app/actions.js)
- a clean way to prevent the same route to be pushed (https://github.com/jlyman/RN-NavigationExperimental-Redux-Example/blob/master/app/reducers.js#L15)
- also a clean way to define initialNavigationState (https://github.com/jlyman/RN-NavigationExperimental-Redux-Example/blob/master/app/reducers.js#L5-L10)
- uses
NavigationTransitioner
which will be preferred toNavigationAnimatedView
in the future (https://github.com/jlyman/RN-NavigationExperimental-Redux-Example/blob/master/app/containers/AppContainer.js#L28-L40) (https://github.com/facebook/react-native/commit/7db7f78dc7d2b85843707f75565bcfcb538e8e51)
what’s your opinion on this @jevakallio
A good background giving context could be found here:
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
[NavigationExperimental] Dealing with race conditions on ...
I've been having this issue with the navigation router in where I can't update the current route while the navigation animation is being ......
Read more >React Native navigation evolution and thoughts on...
Today, you can see how it is being discussed when NavigatorExperimental will turn into maybe simply Navigation and join the stable API lines ......
Read more >Tweets with replies by Kudo (@kudochien) / Twitter
We've shared an update on Metro's progress this year and some incoming long-requested features. https://github.com/react-native-community/discussions-and- ...
Read more >react-native-navigation-experimental-compat - npm
This package is a copy of NavigationExperimental extracted from the react-native repository. -import { NavigationExperimental } from 'react- ...
Read more >Expert Guide to React Navigation - MeetupFeed
React Native: React Navigation v5. ... The new version and discuss everything about it. ... It's been fun, subtlely not stable, but who...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Okay @fabriziomoscon, I’ve now done the basic upgrades to React Native 0.29 at https://github.com/futurice/pepperoni-app-kit/pull/76, ready to start considering a bigger navigation refactor 🎉
@jevakallio I had a big fight over this over the past 2 days! I think I am ready to show some work, submit a PR. I have taken all the new changes in
react-native
into consideration.If you don’t have objections or have already some work for this I can PR