Skip to content

Instantly share code, notes, and snippets.

@lrlineroa
Last active February 24, 2020 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lrlineroa/e9e57a7009dbbd6f1fba258cf812403f to your computer and use it in GitHub Desktop.
Save lrlineroa/e9e57a7009dbbd6f1fba258cf812403f to your computer and use it in GitHub Desktop.
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