Skip to content

Instantly share code, notes, and snippets.

@jeanverster
Created November 5, 2019 14:50
Show Gist options
  • Save jeanverster/eb8e68efb8000a23092aacf3c6fb8886 to your computer and use it in GitHub Desktop.
Save jeanverster/eb8e68efb8000a23092aacf3c6fb8886 to your computer and use it in GitHub Desktop.
const AppNavigation = createAppContainer(
createAnimatedSwitchNavigator(
{
LaunchScreen,
LoginStack,
HomeTabs
},
{
initialRouteName: 'LaunchScreen'
}
)
)
export default React.forwardRef((props, ref: React.LegacyRef<NavigationContainerComponent>) => {
const { mode } = useAppContext()
return <AppNavigation ref={ref} theme={mode === 'default' ? 'light' : 'dark'} />
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment