-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.tsx
31 lines (27 loc) · 875 Bytes
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import React from 'react';
import {createDrawerNavigator} from '@react-navigation/drawer';
import {NativeBaseProvider, Box} from 'native-base';
import {NavigationContainer} from '@react-navigation/native';
import PersonalView from './routes/Personal';
import PublicView from './routes/Public';
const Drawer = createDrawerNavigator();
export default function App() {
return (
<NativeBaseProvider>
<NavigationContainer>
<Drawer.Navigator initialRouteName="Personal">
<Drawer.Screen
name="Personal"
component={PersonalView}
options={{title: 'Personal Space'}}
/>
<Drawer.Screen
name="Public"
component={PublicView}
options={{title: 'Public Space'}}
/>
</Drawer.Navigator>
</NavigationContainer>
</NativeBaseProvider>
);
}