Skip to content

Instantly share code, notes, and snippets.

@tonyvu2014
Created June 10, 2018 07:58
Show Gist options
  • Save tonyvu2014/f80628ca6628cd658c282870d5479ea7 to your computer and use it in GitHub Desktop.
Save tonyvu2014/f80628ca6628cd658c282870d5479ea7 to your computer and use it in GitHub Desktop.
navigationOptions
static navigationOptions = ({ navigation }) => {
const { params } = navigation.state;
return {
tabBarOnPress({ jumpToIndex, scene }) {
params.onTabFocus();
jumpToIndex(scene.index);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment