Skip to content

Instantly share code, notes, and snippets.

@shubhnik
Created November 9, 2017 11:55
Show Gist options
  • Save shubhnik/9cdb8671030737542892c1970c774ea6 to your computer and use it in GitHub Desktop.
Save shubhnik/9cdb8671030737542892c1970c774ea6 to your computer and use it in GitHub Desktop.
const AppNavigator = StackNavigator({
login: {
screen: login
},
screen1: {
screen: Screen1
},
screen2: {
screen: Logout
}
});
const ActionForScreen1 = AppNavigator.router.getActionForPathAndParams(
"screen1"
);
console.log(JSON.stringify(ActionForScreen1))
// {"type":"Navigation/NAVIGATE","routeName":"screen1"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment