-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
94 lines (90 loc) · 2.73 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
import * as React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import Home from './views/Home';
import InputSearch from './views/InputSearch';
import Category from './views/Category';
import News from './views/News';
import NewsDetails from './views/NewsDetails';
import ProductDetails from './views/ProductDetails';
import Cart from './views/Cart';
import Payment from './views/Payment';
import SuccessOrder from './views/SuccessOrder';
import Account from './views/Account';
import SignIn from './views/SignIn';
import SignUp from './views/SignUp';
import { Modal } from 'react-native';
import ProductContextProvider from './contexts/ProductContext';
import Test from './views/Test';
const Stack = createNativeStackNavigator();
export default function App() {
return (
// <ProductContextProvider>
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
name="Home"
component={Home}
options={{ headerShown: false }}
/>
<Stack.Screen
name="InputSearch"
component={InputSearch}
options={{ headerShown: false }}
/>
<Stack.Screen
name="Category"
component={Category}
options={{ headerShown: false }}
/>
<Stack.Screen
name="News"
component={News}
options={{ headerShown: false }}
/>
<Stack.Screen
name="NewsDetails"
component={NewsDetails}
options={{ headerShown: false }}
/>
<Stack.Screen
name="ProductDetails"
component={ProductDetails}
options={{ headerShown: false }}
/>
<Stack.Screen
name="Cart"
component={Cart}
options={{ headerShown: false }}
/>
<Stack.Screen
name="Payment"
component={Payment}
options={{ headerShown: false }}
/>
<Stack.Screen
name="SuccessOrder"
component={SuccessOrder}
options={{ headerShown: false }}
/>
<Stack.Screen
name="Account"
component={Account}
options={{ headerShown: false }}
/>
<Stack.Screen
name="SignIn"
component={SignIn}
options={{ headerShown: false }}
/>
<Stack.Screen
name="SignUp"
component={SignUp}
options={{ headerShown: false }}
/>
</Stack.Navigator>
</NavigationContainer>
// </ProductContextProvider>
// <Test />
);
};