-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppNavigator.js
More file actions
168 lines (168 loc) · 6.18 KB
/
AppNavigator.js
File metadata and controls
168 lines (168 loc) · 6.18 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
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import Register from "./Screen/Register/Register";
import Login from "./Screen/Login/Login";
import ProductDetail from "./Screen/Products/ProductDetail";
import SplashStore from "./Screen/Splash/SplashStore";
import Setting from "./Screen/Setting/Setting";
import ResetPassword from "./Screen/SecurityAccount/ResetPassword";
import FormSecurity from "./Screen/SecurityAccount/FormSecurity/FormSecurity";
import PasswordNew from "./Screen/SecurityAccount/PasswordNew";
import Coupon from "./Screen/Coupons/Coupon";
import CpnProductDetail from "./components/Product/CpnProductDetail";
import Address from "./Screen/Informations/Address";
import Category from "./components/MenuCategory/Category";
import OrderDetail from "./Screen/Order/OrderDetail";
import Payment from "./Screen/Payment/Payment";
import PaymentMethod from "./Screen/Payment/PaymentMethod";
const Stack = createNativeStackNavigator();
import React, { useRef, useEffect } from "react";
import AccountInfo from "./Screen/Accountinfomation/Accountinfo";
import LikeProducts from "./Screen/Informations/LikeProducts";
import Profile from "./Screen/Informations/Profile";
import Search from "./Screen/Search/Search";
import DanhGiaProduct from "./Screen/danhgia/danhgiaproduct";
import BottomTabNavigation from "./navigations/BottomTabNavigation";
import Qrcode from "./Screen/Qrcode/Qrcode";
import ConfirmationOrder from "./Screen/ConfirmationOrder/ConfirmationOrder";
import EditAddress from "./Screen/Address/EditAddress";
import AddAddress from "./Screen/Address/AddAddress";
import CouponOrder from "./Screen/CouponsOrder/CouponOrder";
import Contact from "./Screen/Contact/Contact";
import VerifyVnPayPayMent from "./Screen/ConfirmationOrder/Verifyvnpaypayment";
import ThanhToanLaiVnpay from "./Screen/PurchaseOrder/ThanhToanLaiVnpay";
import VerifyCOD from "./Screen/ConfirmationOrder/VerifyCOD";
import MainTabPurchase from "./Screen/PurchaseOrder/MainTabPurchase";
import StatusOrder from "./Screen/ConfirmationOrder/StatusOrder";
import UploadImage from "./Screen/Informations/upload";
import InfoUser from "./Screen/Accountinfomation/Infouser";
import About from "./Screen/Informations/About";
export default function AppNavigator() {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="SplashStore">
<Stack.Screen
name="BottomTabNavigation"
component={BottomTabNavigation}
options={{
headerShown: false,
}}
/>
<Stack.Screen
name="SplashStore"
component={SplashStore}
options={{ headerShown: false }}
/>
<Stack.Screen name="Login" component={Login} />
<Stack.Screen name="Register" component={Register} />
<Stack.Screen
name="ProductDetail"
component={ProductDetail}
options={{ headerShown: false }}
/>
<Stack.Screen name="LikeProducts" component={LikeProducts} />
<Stack.Screen name="Setting" component={Setting} />
<Stack.Screen
name="AccountInfo"
component={AccountInfo}
options={{
resetOnBlur: true,
}}
/>
<Stack.Screen
name="CpnProductDetail"
component={CpnProductDetail}
options={{
resetOnBlur: true,
}}
/>
<Stack.Screen
name="Address"
component={Address}
options={{
resetOnBlur: true,
}}
/>
<Stack.Screen
name="Category"
component={Category}
options={{
resetOnBlur: true,
}}
/>
<Stack.Screen name="ResetPassword" component={ResetPassword} />
<Stack.Screen name="FormSecurity" component={FormSecurity} />
<Stack.Screen name="PasswordNew" component={PasswordNew} />
<Stack.Screen name="Coupon" component={Coupon} />
<Stack.Screen name="Search" component={Search} />
<Stack.Screen name="DanhGiaProduct" component={DanhGiaProduct} />
<Stack.Screen name="Qrcode" component={Qrcode} />
<Stack.Screen name="ConfirmationOrder" component={ConfirmationOrder} />
<Stack.Screen
name="OrderDetail"
component={OrderDetail}
options={{ headerShown: false }}
/>
<Stack.Screen
name="Payment"
component={Payment}
options={{ headerShown: false }}
/>
<Stack.Screen
name="PaymentMethod"
component={PaymentMethod}
options={{ headerShown: false }}
/>
<Stack.Screen name="EditAddress" component={EditAddress} />
<Stack.Screen name="AddAddress" component={AddAddress} />
<Stack.Screen name="CouponOrder" component={CouponOrder} />
<Stack.Screen name="Contact" component={Contact} options={{}} />
<Stack.Screen
name="VerifyCOD"
component={VerifyCOD}
options={{ headerShown: false }}
/>
<Stack.Screen
name="VerifyVnPayPayMent"
component={VerifyVnPayPayMent}
options={{ headerShown: false }}
/>
<Stack.Screen
name="MainTabPurchase"
component={MainTabPurchase}
options={{ headerShown: false }}
/>
<Stack.Screen
name="StatusOrder"
component={StatusOrder}
options={{ headerShown: false }}
/>
<Stack.Screen
name="UploadImage"
component={UploadImage}
options={{ headerShown: false }}
/>
<Stack.Screen
name="Profile"
component={Profile}
options={{ headerShown: false }}
/>
<Stack.Screen
name="ThanhToanLaiVnpay"
component={ThanhToanLaiVnpay}
options={{ headerShown: false }}
/>
<Stack.Screen
name="InfoUser"
component={InfoUser}
options={{ headerShown: true }}
/>
<Stack.Screen
name="About"
component={About}
options={{ headerShown: true }}
/>
</Stack.Navigator>
</NavigationContainer>
);
}