Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Add in public openRoute method for Router #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jonmorehouse
Copy link

Resolves #11

Allows you to have shared route opening methods from the parent class containing the react-native-router instance.

@joeferraro
Copy link

thanks for this @jonmorehouse, needed this for an app with a global sidenav

@MossP
Copy link

MossP commented May 13, 2015

Thanks for this @jonmorehouse . But how do you then call this from the parent?

edit Actually, I'm not sure that this is what I need. Does this allow you to change the internal route of the router from the parent class that called the --Router firstRoute={myRoute}-- ? I'd like to be able to popToRoot of the navigator when the TabBarButton is reselected. I have it working from children of the Router, but not from the parent.

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

Successfully merging this pull request may close these issues.

Ability to openRoute from component containing Router
3 participants