Hey there, I've been studying Navigator Experimental (aimed at using with Redux) and I found your example finally tied it all together (whereas the initial docs are quite obtuse).
The good parts are obviously the way you can easily pass a route and have the navigation bar rendered properly + the scene. The bad parts are obviously that it's not declarative, and won't play nice with Redux as you move between actions in the dev tools.
I'd like to preserve the ExNavigator interface (minus a few things), but make it declarative. So that means navigator.push would be gone and redux actions and reducers would be used as you have now. But we could call this.props.navigatePush(route) with an identical route object as what you would pass to ExNavigator. That's the goal. Navigation bar handled identically as in ExNavigator.
The overall goal is it would allow people to use NavigatorExperimental as a near-drop-in-replacement for the very popular ExNavigator. Basically all you need to do is replace your calls to push, pop, etc, with dispatching redux actions, and properly assign the navigationState prop. But renderOverlay and renderScene would be handled 100 internally. From my perspective, I'm really confused as to why this wasn't the overall goal with NavigatorExperimental from the beginning, but I guess one step at a time.
So how do you see us getting done NextNavigator? What do you see needing to be done? And is this something of interest to you to work on?
Hey there, I've been studying Navigator Experimental (aimed at using with Redux) and I found your example finally tied it all together (whereas the initial docs are quite obtuse).
I currently have an app I built using Ex Navigator, which I'm sure you're familiar with: https://github.com/exponentjs/ex-navigator
The good parts are obviously the way you can easily pass a route and have the navigation bar rendered properly + the scene. The bad parts are obviously that it's not declarative, and won't play nice with Redux as you move between actions in the dev tools.
I'd like to preserve the ExNavigator interface (minus a few things), but make it declarative. So that means
navigator.push
would be gone and redux actions and reducers would be used as you have now. But we could callthis.props.navigatePush(route)
with an identical route object as what you would pass to ExNavigator. That's the goal. Navigation bar handled identically as in ExNavigator.The overall goal is it would allow people to use NavigatorExperimental as a near-drop-in-replacement for the very popular ExNavigator. Basically all you need to do is replace your calls to
push
,pop
, etc, with dispatching redux actions, and properly assign the navigationState prop. ButrenderOverlay
andrenderScene
would be handled100
internally. From my perspective, I'm really confused as to why this wasn't the overall goal with NavigatorExperimental from the beginning, but I guess one step at a time.So how do you see us getting done NextNavigator? What do you see needing to be done? And is this something of interest to you to work on?