Last active
February 24, 2020 21:39
-
-
Save lrlineroa/e9e57a7009dbbd6f1fba258cf812403f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createStackNavigator } from 'react-navigation-stack'; | |
import { createAppContainer } from 'react-navigation'; | |
import EntryPoint from './UI/EntryPoint'; | |
import appConstants from '../common/AppConstants'; | |
let routes = {} | |
routes[appConstants.appRoutes.ENTRY_POINT] = { screen: EntryPoint } | |
const MainNavigator = createStackNavigator( | |
routes, | |
{ | |
headerMode: 'none', | |
/* The header config from HomeScreen is now here */ | |
defaultNavigationOptions: { | |
headerStyle: { | |
backgroundColor: '#f00', | |
alignContent: 'center', | |
}, | |
headerTintColor: '#fff', | |
headerTitleStyle: { | |
fontWeight: 'bold', | |
marginLeft: 0 | |
}, | |
}, | |
} | |
); | |
const Router = createAppContainer(MainNavigator); | |
export default Router; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment