Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Few API will change
Is there a way to help?
Hey @chrfalch, great work! I actually came here to post about the same topic, react-nav 2 and beyond.
We've updated the API for createNavigator in v2, which will make your migration slightly non-trivial, but it should result in simpler code. The new API is documented here:
tldr: the navigation view now gets screen 'descriptors', and no longer can directly access the router. addNavigationHelpers is going away.
v3 and beyond
Let's collaborate on a new transitioner for the library! The one in core is pretty crufty, as I'm sure you've realized
I'm drafting a simpler new transitioner here, potentially for v3 of the library: https://github.com/react-navigation/react-navigation/blob/%40ericvicenti/transitioner2/src/views/StackView/Transitioner2.js
But it doesn't support your shared element magic, so I think this would be great timing to collaborate.
It would be so nice to allow the header and inner elements to be rendered via shared element transition in comparison to the current approach. We'd be able to support much more advanced use cases. Plus, navigation options have proven to be a pretty inconvenient way for people to set up their header in comparison to rendering things inside the screen, where component state can be accessed.
Feel free to message me on twitter, or email at gmail.