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

Nested routers #95

Closed
skizzo opened this issue Mar 9, 2016 · 3 comments
Closed

Nested routers #95

skizzo opened this issue Mar 9, 2016 · 3 comments

Comments

@skizzo
Copy link

skizzo commented Mar 9, 2016

Hi,
is it possible to nest routers?

For example,

  1. my root router would handle modals but mainly display
  2. a component ScreenWithTabBar, which itself contains
  3. my tab router which is capable to replace routes based on the selected tab, and
  4. my ComponentTabBar which shows buttons for the routes in tab router

Saving global references to the router objects themselves (via the ref property of the component and setting a global object onComponentDidMount()) doesn't help, since the toRoute()or toBack() functions can't be called on the Router object itself.
Thanks for any hints.

@charpeni
Copy link
Contributor

charpeni commented Mar 9, 2016

Can be related to #92 ?

@skizzo
Copy link
Author

skizzo commented Mar 9, 2016

Absolutely, thanks.

@charpeni
Copy link
Contributor

charpeni commented Mar 9, 2016

I'll close this issue since we have a duplication.

@charpeni charpeni closed this as completed Mar 9, 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