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

Two separate routes on one page #2

Closed
brandonfujii opened this issue Aug 28, 2016 · 1 comment
Closed

Two separate routes on one page #2

brandonfujii opened this issue Aug 28, 2016 · 1 comment

Comments

@brandonfujii
Copy link

brandonfujii commented Aug 28, 2016

With your approach of having routes as an array in the navigationState reducer, how would you navigate to two different routes on the same page.
For example, let's say that I have two different TouchableHighlights, with the first navigating forward to Page 1 and the second navigating forward to Page 2.

@jlebensold
Copy link
Owner

@brandonfujii in that case they would be two separate routes with two different indexes to two different pages. You could also encapsulate portions of functionality into higher order React Components. For example, PageOne and PageTwo both rely on HeaderComponent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants