-
Notifications
You must be signed in to change notification settings - Fork 5
/
App.js
55 lines (53 loc) · 1.5 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import * as React from 'react';
import {
Text,
View,
WebView,
ScrollView,
StyleSheet,
TextInput,
TouchableOpacity,
} from 'react-native';
import Constants from 'expo-constants';
import DocViewer from './components/docViewer';
import Front from './components/homePage';
import CaseFinderCore from './components/caseFinderCore';
import BookmarkStack from './components/bookmark';
import { createDrawerNavigator } from '@react-navigation/drawer';
import {
Provider as PaperProvider,
DefaultTheme as PaperDefaultTheme,
DarkTheme as PaperDarkTheme,
} from 'react-native-paper';
import {
NavigationContainer,
DefaultTheme,
DefaultTheme as NavigationDefaultTheme,
DarkTheme as NavigationDarkTheme,
DarkTheme,
DrawerActions,
} from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
const cheerio = require('react-native-cheerio');
const Stack = createStackNavigator();
export default class App extends React.Component {
createHomeStack = () => (
<Stack.Navigator>
<Stack.Screen
options={{ headerShown: false }}
name="Front"
component={Front}
/>
<Stack.Screen
options={{ headerShown: false }}
name="Home"
component={CaseFinderCore}
/>
<Stack.Screen name="DocViewer" component={DocViewer} />
<Stack.Screen name="Bookmark" component={BookmarkStack} />
</Stack.Navigator>
);
render() {
return <NavigationContainer>{this.createHomeStack()}</NavigationContainer>;
}
}