Skip to content
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

Doc Improvement: Custom reducers should clearly be encouraged/supported #5

Open
fabianeichinger opened this issue Jan 4, 2016 · 1 comment

Comments

@fabianeichinger
Copy link

I'd love to see a documented support for providing this navigation model a custom reducer / onNavigation method which is propagated to build in or library provided Components like NavigationCard or NavigationHeader.

The docs currently make it sound like there is only a bunch of default actions, which could be extended, but the only supported reducer is NavigationReducer. Is that the case?

@ericvicenti
Copy link
Owner

There is no restriction to the default set of actions and NavigationReducer. You can set up the application with whatever reducer you want. If you use NavigationContainer.RootContainer, then you can provide a reducer prop. When you use a component wrapped with NavigationContainer.create, then you can override the onNavigation handler for the container.

The code in this repo doesn't have this new API just yet. I'll update it soon and make it easier to experiment with.

@ericvicenti ericvicenti changed the title Document provision and propagation of custom reducers Doc Improvement: Custom reducers should clearly be encouraged/supported Jan 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants