-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
20 lines (16 loc) · 674 Bytes
/
App.js
File metadata and controls
20 lines (16 loc) · 674 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import React from 'react';
import { createAppContainer, createSwitchNavigator, } from 'react-navigation';
import WelcomeScreen from './screens/welcome';
import { NGOBottomTabNavigator } from './bottomTabNavigations/NGOBottomTabNavigation'
import { userBottomTabNavigator } from './bottomTabNavigations/userBottomTabNavigation'
export default function App() {
return (
<AppContainer />
);
}
const switchNavigator = createSwitchNavigator({
WelcomeScreen: { screen: WelcomeScreen },
NGOBottomTabNavigator: { screen: NGOBottomTabNavigator },
usrBottomTabNavigator: { screen: userBottomTabNavigator }
})
const AppContainer = createAppContainer(switchNavigator);