application-amicale/navigation/MainDrawerNavigator.js

35 lines
1.1 KiB
JavaScript
Raw Normal View History

// @flow
import * as React from 'react';
2019-06-25 22:20:24 +02:00
import {createDrawerNavigator} from 'react-navigation';
import HomeScreen from '../screens/HomeScreen';
import PlanningScreen from '../screens/PlanningScreen';
2019-09-28 12:01:19 +02:00
import ProxiwashScreen from '../screens/Proxiwash/ProxiwashScreen';
2019-06-27 10:17:51 +02:00
import ProximoMainScreen from '../screens/Proximo/ProximoMainScreen';
2019-08-06 19:18:45 +02:00
import PlanexScreen from '../screens/PlanexScreen';
2019-06-25 22:20:24 +02:00
import SettingsScreen from '../screens/SettingsScreen';
2019-06-27 11:08:56 +02:00
import AboutScreen from '../screens/About/AboutScreen';
import Sidebar from "../components/Sidebar";
2019-06-25 22:20:24 +02:00
2019-06-29 15:43:57 +02:00
/**
* Creates the drawer navigation stack
*/
2019-06-25 22:20:24 +02:00
export default createDrawerNavigator({
Home: {screen: HomeScreen},
Planning: {screen: PlanningScreen,},
Proxiwash: {screen: ProxiwashScreen,},
2019-06-27 10:17:51 +02:00
Proximo: {screen: ProximoMainScreen,},
2019-08-06 19:18:45 +02:00
Planex: {screen: PlanexScreen},
2019-06-25 22:20:24 +02:00
Settings: {screen: SettingsScreen,},
About: {screen: AboutScreen,},
}, {
contentComponent: Sidebar,
2019-06-27 10:17:51 +02:00
initialRouteName: 'Home',
backBehavior: 'initialRoute',
drawerType: 'front',
useNativeAnimations: true,
2019-06-25 22:20:24 +02:00
}
);