Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save abegehr/cbe64594e9dca4a591491392ab241ca0 to your computer and use it in GitHub Desktop.
Save abegehr/cbe64594e9dca4a591491392ab241ca0 to your computer and use it in GitHub Desktop.
simple react-navigation createStackNavigator() with Home, Links, and Settings screens
export default createAppContainer(
createStackNavigator(
{
Home: HomeScreen,
Links: LinksScreen,
Settings: SettingsScreen
},
{
initialRouteName: "Home",
mode: "modal",
headerMode: "none",
defaultNavigationOptions: {
cardStyle: {
backgroundColor: "rgba(0, 0, 0, 0)"
}
}
}
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment