-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
37 lines (31 loc) · 903 Bytes
/
App.js
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
32
33
34
35
36
37
import { StyleSheet, View } from 'react-native';
import DocsGPT from './src';
import Upload from './src/upload';
import 'react-native-gesture-handler';
import { createDrawerNavigator } from '@react-navigation/drawer';
import { NavigationContainer } from '@react-navigation/native';
import {Provider} from 'react-redux';
import {store} from './redux/store';
const Drawer = createDrawerNavigator();
export default function App() {
return (
<Provider store={store}>
<NavigationContainer>
<Drawer.Navigator initialRouteName="DocsGPT"
screenOptions={
{
headerShown: true
}
}>
<Drawer.Screen name="Upload Docs" component={Upload} />
<Drawer.Screen name="DocsGPT" component={DocsGPT} />
</Drawer.Navigator>
</NavigationContainer>
</Provider>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
},
});