Advertisement
Guest User

Untitled

a guest
Oct 16th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 'use strict';
  2.  
  3. import React from 'react';
  4. import {createSwitchNavigator, DrawerNavigator} from 'react-navigation';
  5.  
  6. import Splash from "../screens/splash";
  7. import Login from "../screens/login";
  8.  
  9. import SideBar from "../screens/menu";
  10.  
  11. import MyCourses from "../screens/myCourses/";
  12.  
  13. const MainNavigator = createDrawerNavigator(
  14.     {
  15.         MyCourses: {screen: MyCourses},
  16.     },
  17.     {
  18.         contentComponent: props => <SideBar {...props} />,
  19.         drawerWidth: ScreenWidth,
  20.         drawerPosition: 'right',
  21.         initialRouteName: 'MyCourses'
  22.     }
  23. );
  24.  
  25. export const AppNavigator = createSwitchNavigator(
  26.     {
  27.         Splash: {screen: Splash},
  28.         Login: {screen: Login},
  29.         Main: MainNavigator
  30.     },
  31.     {
  32.         initialRouteName: 'Splash'
  33.     }
  34. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement