2019-06-29 13:37:21 +02:00
|
|
|
// @flow
|
|
|
|
|
2019-06-27 10:17:51 +02:00
|
|
|
import {createAppContainer, createStackNavigator} from 'react-navigation';
|
2019-09-12 23:02:28 +02:00
|
|
|
import {createMaterialBottomTabNavigatorWithInitialRoute} from './MainTabNavigator';
|
2019-08-07 11:10:17 +02:00
|
|
|
import SettingsScreen from '../screens/SettingsScreen';
|
|
|
|
import AboutScreen from '../screens/About/AboutScreen';
|
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-09-28 12:01:19 +02:00
|
|
|
import ProxiwashAboutScreen from '../screens/Proxiwash/ProxiwashAboutScreen';
|
2019-08-08 18:25:13 +02:00
|
|
|
import ProximoAboutScreen from '../screens/Proximo/ProximoAboutScreen';
|
2019-08-08 13:57:03 +02:00
|
|
|
import SelfMenuScreen from '../screens/SelfMenuScreen';
|
2019-11-02 15:44:19 +01:00
|
|
|
import TutorInsaScreen from "../screens/TutorInsaScreen";
|
|
|
|
import AmicaleScreen from "../screens/AmicaleScreen";
|
|
|
|
import WiketudScreen from "../screens/WiketudScreen";
|
2020-01-29 13:53:05 +01:00
|
|
|
import ElusEtudScreen from "../screens/ElusEtudScreen";
|
2019-11-02 15:44:19 +01:00
|
|
|
import AvailableRoomScreen from "../screens/AvailableRoomScreen";
|
2019-08-26 12:49:26 +02:00
|
|
|
import DebugScreen from '../screens/DebugScreen';
|
2019-08-08 13:57:03 +02:00
|
|
|
import {fromRight} from "react-navigation-transitions";
|
2019-06-25 22:20:24 +02:00
|
|
|
|
2019-11-02 15:44:19 +01:00
|
|
|
|
2019-06-29 15:43:57 +02:00
|
|
|
/**
|
|
|
|
* Create a stack navigator using the drawer to handle navigation between screens
|
|
|
|
*/
|
2019-09-12 23:02:28 +02:00
|
|
|
function createAppContainerWithInitialRoute(initialRoute: string) {
|
|
|
|
return createAppContainer(
|
|
|
|
createStackNavigator({
|
|
|
|
Main: createMaterialBottomTabNavigatorWithInitialRoute(initialRoute),
|
|
|
|
// Drawer: MainDrawerNavigator,
|
|
|
|
ProximoListScreen: {screen: ProximoListScreen},
|
|
|
|
SettingsScreen: {screen: SettingsScreen},
|
|
|
|
AboutScreen: {screen: AboutScreen},
|
|
|
|
AboutDependenciesScreen: {screen: AboutDependenciesScreen},
|
|
|
|
SelfMenuScreen: {screen: SelfMenuScreen},
|
2019-11-02 15:44:19 +01:00
|
|
|
TutorInsaScreen: {screen: TutorInsaScreen},
|
|
|
|
AmicaleScreen: {screen: AmicaleScreen},
|
|
|
|
WiketudScreen: {screen: WiketudScreen},
|
2020-01-29 13:53:05 +01:00
|
|
|
ElusEtudScreen: {screen: ElusEtudScreen},
|
2019-11-02 15:44:19 +01:00
|
|
|
AvailableRoomScreen: {screen: AvailableRoomScreen},
|
2019-09-12 23:02:28 +02:00
|
|
|
ProxiwashAboutScreen: {screen: ProxiwashAboutScreen},
|
|
|
|
ProximoAboutScreen: {screen: ProximoAboutScreen},
|
|
|
|
DebugScreen: {screen: DebugScreen},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
initialRouteName: "Main",
|
|
|
|
mode: 'card',
|
|
|
|
headerMode: "none",
|
|
|
|
transitionConfig: () => fromRight(),
|
|
|
|
})
|
|
|
|
);
|
|
|
|
}
|
|
|
|
export {createAppContainerWithInitialRoute};
|