react-native-router icon indicating copy to clipboard operation
react-native-router copied to clipboard

Add in public openRoute method for Router

Open jonmorehouse opened this issue 9 years ago • 2 comments

Resolves #11

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

jonmorehouse avatar Apr 20 '15 03:04 jonmorehouse

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

joeferraro avatar May 01 '15 18:05 joeferraro

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.

MossP avatar May 13 '15 15:05 MossP