application-amicale/navigation/AppNavigator.js

26 lines
839 B
JavaScript
Raw Normal View History

// @flow
2019-06-27 10:17:51 +02:00
import {createAppContainer, createStackNavigator} from 'react-navigation';
2019-06-25 22:20:24 +02:00
import MainDrawerNavigator from './MainDrawerNavigator';
import MainTabNavigator from './MainTabNavigator';
2019-06-27 10:17:51 +02:00
import ProximoListScreen from '../screens/Proximo/ProximoListScreen';
2019-06-27 11:08:56 +02:00
import AboutDependenciesScreen from '../screens/About/AboutDependenciesScreen';
2019-06-25 22:20:24 +02:00
2019-06-29 15:43:57 +02:00
/**
* Create a stack navigator using the drawer to handle navigation between screens
*/
2019-06-25 22:20:24 +02:00
export default createAppContainer(
2019-06-27 10:17:51 +02:00
createStackNavigator({
Tabs: MainTabNavigator,
// Drawer: MainDrawerNavigator,
2019-06-27 10:17:51 +02:00
ProximoListScreen: {screen: ProximoListScreen},
2019-06-27 11:08:56 +02:00
AboutDependenciesScreen: {screen: AboutDependenciesScreen},
2019-06-27 10:17:51 +02:00
},
{
initialRouteName: "Tabs",
2019-06-27 10:17:51 +02:00
mode: 'card',
headerMode: "none"
})
);