Skip to content

Instantly share code, notes, and snippets.

@Maluen
Created September 5, 2018 09:57
Show Gist options
  • Save Maluen/878d94c01cc1d62ee5d84dcbac8da4ce to your computer and use it in GitHub Desktop.
Save Maluen/878d94c01cc1d62ee5d84dcbac8da4ce to your computer and use it in GitHub Desktop.
React Navigation: combining drawer and stack navigator
const StackNavigator = createStackNavigator({
Home: HomeScreen,
Search: SearchScreen,
Details: DetailsScreen,
Credits: CreditsScreen,
}, {
navigationOptions: {
header: null,
},
});
const AppNavigator = createDrawerNavigator({
Home: StackNavigator,
}, {
contentComponent: Drawer,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment