application-amicale/navigation/AppNavigator.js
2019-06-29 15:43:57 +02:00

23 lines
747 B
JavaScript

// @flow
import {createAppContainer, createStackNavigator} from 'react-navigation';
import MainDrawerNavigator from './MainDrawerNavigator';
import ProximoListScreen from '../screens/Proximo/ProximoListScreen';
import AboutDependenciesScreen from '../screens/About/AboutDependenciesScreen';
/**
* Create a stack navigator using the drawer to handle navigation between screens
*/
export default createAppContainer(
createStackNavigator({
Main: MainDrawerNavigator,
ProximoListScreen: {screen: ProximoListScreen},
AboutDependenciesScreen: {screen: AboutDependenciesScreen},
},
{
initialRouteName: "Main",
mode: 'card',
headerMode: "none"
})
);