forked from AdmiralYuuShi/Frontend-Kebonid
-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.js
139 lines (137 loc) · 3.41 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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
import React, {Component} from 'react';
import {createAppContainer} from 'react-navigation';
import {createStackNavigator} from 'react-navigation-stack';
import {Provider} from 'react-redux';
import {MenuProvider} from 'react-native-popup-menu';
import {store, persistor} from './src/public/redux/store';
import {PersistGate} from 'redux-persist/integration/react';
// screens
import BottomNavbar from './src/screens/BottomNavbar';
import Home from './src/screens/Home';
import Wishlist from './src/screens/Wishlist';
import Cart from './src/screens/Cart';
import Profile from './src/screens/Profile';
import Sort from './src/screens/Sort';
import Filter from './src/screens/Filter';
import Product from './src/screens/Product';
import Start from './src/screens/Start';
import Login from './src/screens/Login';
import Register from './src/screens/SignUp';
import EditPhotoUser from './src/screens/EditPhotoUser';
import AddProduct from './src/screens/AddProduct';
import EditProduct from './src/screens/EditProduct';
import ProductStore from './src/screens/ProductStore';
import EditUser from './src/screens/EditUser';
import AddStoreAccount from './src/screens/AddStoreAccount';
import Splash from './src/screens/Splash';
import RequestForgotPassword from './src/screens/RequestForgotPassword';
import ResetPassword from './src/screens/ResetPassword';
import Transaction from './src/screens/Transaction';
import Invoice from './src/screens/Invoice';
import EditStore from './src/screens/EditStore';
import EditPhotoStore from './src/screens/EditPhotoStore';
import GoToLogin from './src/screens/GoToLogin';
import AddCart from './src/screens/AddCart';
const AppNavigator = createStackNavigator(
{
Splash: {
screen: Splash,
},
Start: {
screen: Start,
},
Login: {
screen: Login,
},
Register: {
screen: Register,
},
RequestForgotPassword: {
screen: RequestForgotPassword,
},
ResetPassword: {
screen: ResetPassword,
},
Invoice: {
screen: Invoice,
},
Transaction: {
screen: Transaction,
},
EditUser: {
screen: EditUser,
},
EditPhotoUser: {
screen: EditPhotoUser,
},
AddStoreAccount: {
screen: AddStoreAccount,
},
EditPhotoStore: {
screen: EditPhotoStore,
},
EditStore: {
screen: EditStore,
},
BottomNavbar: {
screen: BottomNavbar,
},
Home: {
screen: Home,
},
Wishlist: {
screen: Wishlist,
},
Cart: {
screen: Cart,
},
Profile: {
screen: Profile,
},
Sort: {
screen: Sort,
},
Filter: {
screen: Filter,
},
Product: {
screen: Product,
},
AddProduct: {
screen: AddProduct,
},
EditProduct: {
screen: EditProduct,
},
ProductStore: {
screen: ProductStore,
},
GoToLogin: {
screen: GoToLogin,
},
AddCart: {
screen: AddCart,
},
},
{
headerMode: 'none',
navigationOptions: {
headerVisible: false,
},
},
);
const AppContainer = createAppContainer(AppNavigator);
// wrap all component with redux Provider and the store
export default class App extends Component {
render() {
return (
<MenuProvider>
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<AppContainer />
</PersistGate>
</Provider>
</MenuProvider>
);
}
}