2018-10-09 02:18:00 +03:00
|
|
|
import { DrawerNavigator, SwitchNavigator } from 'react-navigation';
|
2018-10-05 01:27:32 +03:00
|
|
|
import { BaseNavigator } from '../navigation';
|
2018-10-09 02:18:00 +03:00
|
|
|
import { default as ROUTES } from '../constants/routeNames';
|
2018-10-04 05:18:36 +03:00
|
|
|
|
2018-10-05 06:42:27 +03:00
|
|
|
// Screens
|
2018-10-19 00:34:53 +03:00
|
|
|
import {
|
2018-10-25 11:04:12 +03:00
|
|
|
Splash, Login, PinCode, SteemConnect, Editor, Profile
|
2018-10-19 00:34:53 +03:00
|
|
|
} from '../screens';
|
2018-10-04 05:18:36 +03:00
|
|
|
|
2018-10-05 06:42:27 +03:00
|
|
|
// Components
|
|
|
|
import { SideMenu } from '../components';
|
|
|
|
|
2018-10-06 06:33:03 +03:00
|
|
|
const mainNavigation = DrawerNavigator(
|
2018-10-05 06:42:27 +03:00
|
|
|
{
|
2018-10-09 02:18:00 +03:00
|
|
|
[ROUTES.SCREENS.HOME]: {
|
2018-10-05 06:42:27 +03:00
|
|
|
screen: BaseNavigator,
|
|
|
|
navigationOptions: {
|
|
|
|
header: () => null,
|
|
|
|
},
|
2018-10-04 05:18:36 +03:00
|
|
|
},
|
|
|
|
},
|
2018-10-05 06:42:27 +03:00
|
|
|
{
|
|
|
|
contentComponent: SideMenu,
|
|
|
|
},
|
|
|
|
);
|
2018-10-06 06:33:03 +03:00
|
|
|
|
|
|
|
export default SwitchNavigator({
|
2018-10-13 17:05:42 +03:00
|
|
|
[ROUTES.DRAWER.MAIN]: mainNavigation,
|
2018-10-09 02:18:00 +03:00
|
|
|
[ROUTES.SCREENS.LOGIN]: { screen: Login },
|
|
|
|
[ROUTES.SCREENS.PINCODE]: { screen: PinCode },
|
2018-10-19 00:34:53 +03:00
|
|
|
[ROUTES.SCREENS.STEEM_CONNECT]: { screen: SteemConnect },
|
2018-10-24 09:58:14 +03:00
|
|
|
[ROUTES.SCREENS.PROFILE]: { screen: Profile },
|
2018-10-13 17:05:42 +03:00
|
|
|
[ROUTES.SCREENS.SPLASH]: { screen: Splash },
|
2018-10-06 06:33:03 +03:00
|
|
|
});
|