-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp2.js
More file actions
92 lines (53 loc) · 1.23 KB
/
Copy pathApp2.js
File metadata and controls
92 lines (53 loc) · 1.23 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import React, { Component } from 'react'
import Foods from './components2/foods'
import FoodForm from './components2/FoodForm1'
import FoodDetail from './components2/foodDetail'
import EditFood from './components2/EditFood'
import LoginScreen from './components2/Auth/LoginScreen'
import {
SafeAreaView,
StyleSheet,
ScrollView,
View,
Text,
StatusBar,
Button,
TextInput,
FlatList,
TouchableOpacity,
Image
} from 'react-native';
import { createAppContainer, createSwitchNavigator } from 'react-navigation';
import { createDrawerNavigator } from 'react-navigation-drawer';
import { createStackNavigator } from 'react-navigation-stack'
const AppStack = createStackNavigator({
FoodList:Foods,
FoodForm:FoodForm,
FoodDetail:FoodDetail,
EditFood:EditFood,
})
const AuthNavigator = createStackNavigator({
LoginRoute: {
screen: LoginScreen,
navigationOptions: () => {
return {
headerShown: false
}
}
}
})
const AppContainer = createAppContainer(createSwitchNavigator({
App: AppStack,
Auth: AuthNavigator
}, {
initialRouteName: "Auth"
}
))
class App2 extends Component {
render() {
return (
<AppContainer />
)
}
}
export default App2;