2019-06-29 13:37:21 +02:00
|
|
|
// @flow
|
|
|
|
|
2019-06-27 10:17:51 +02:00
|
|
|
import {createAppContainer, createStackNavigator} from 'react-navigation';
|
2019-08-07 10:24:35 +02:00
|
|
|
import MainTabNavigator 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-08-08 18:05:18 +02:00
|
|
|
import ProxiwashAboutScreen from '../screens/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';
|
|
|
|
import {fromRight} from "react-navigation-transitions";
|
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({
|
2019-08-07 11:33:45 +02:00
|
|
|
Main: MainTabNavigator,
|
2019-08-07 10:24:35 +02:00
|
|
|
// Drawer: MainDrawerNavigator,
|
2019-06-27 10:17:51 +02:00
|
|
|
ProximoListScreen: {screen: ProximoListScreen},
|
2019-08-07 11:10:17 +02:00
|
|
|
SettingsScreen: {screen: SettingsScreen},
|
|
|
|
AboutScreen: {screen: AboutScreen},
|
2019-06-27 11:08:56 +02:00
|
|
|
AboutDependenciesScreen: {screen: AboutDependenciesScreen},
|
2019-08-08 13:57:03 +02:00
|
|
|
SelfMenuScreen: {screen: SelfMenuScreen},
|
2019-08-08 18:05:18 +02:00
|
|
|
ProxiwashAboutScreen: {screen: ProxiwashAboutScreen},
|
2019-08-08 18:25:13 +02:00
|
|
|
ProximoAboutScreen: {screen: ProximoAboutScreen},
|
2019-06-27 10:17:51 +02:00
|
|
|
},
|
|
|
|
{
|
2019-08-07 11:33:45 +02:00
|
|
|
initialRouteName: "Main",
|
2019-06-27 10:17:51 +02:00
|
|
|
mode: 'card',
|
2019-08-08 13:57:03 +02:00
|
|
|
headerMode: "none",
|
|
|
|
transitionConfig: () => fromRight(),
|
2019-06-27 10:17:51 +02:00
|
|
|
})
|
|
|
|
);
|