Given the switchNavigator below (taken from the official example), how can one navigate to the AuthStack, from outside a component, which means without this.props.navigation ?
export default createSwitchNavigator(
{
AuthLoading: AuthLoadingScreen,
App: AppStack,
Auth: AuthStack,
},
{
initialRouteName: 'AuthLoading',
}
);
I already tried NavigationActions.navigate({ routeName: 'Auth' }); , but with no luck.
Version:
"react-navigation": "~2.3.1",
Given the switchNavigator below (taken from the official example), how can one navigate to the AuthStack, from outside a component, which means without this.props.navigation ?
I already tried
NavigationActions.navigate({ routeName: 'Auth' });, but with no luck.Version:
"react-navigation": "~2.3.1",