-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
171 lines (165 loc) · 4.97 KB
/
App.js
File metadata and controls
171 lines (165 loc) · 4.97 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
169
170
171
import { StatusBar } from "expo-status-bar";
import { StyleSheet, Text, View } from "react-native";
import React, { useState } from "react";
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import { NativeBaseProvider } from "native-base";
//importación de la pantallas
import LoginEmail from "./src/screens/LoginEmail";
import Signup from "./src/screens/Signup";
import Main from "./src/screens/Main";
import LogoPage from "./src/screens/LogoPage";
import Cart from "./src/screens/Cart";
import DataProviders from "./src/Components/DataProviders";
import ProductState from "./src/Context/Products/ProductState";
import ItemScreen from "./src/screens/ItemScreen";
import Receipt from "./src/screens/Receipt";
import ModalReceiptScreen from "./src/screens/ModalReceiptScreen";
import Buys from "./src/screens/Buys";
import { LogBox } from "react-native";
import Favorites from "./src/screens/Favorites";
import MyAccount from "./src/screens/MyAccount";
import PaymentMethod from "./src/screens/PaymentMethod";
import Help from "./src/screens/Help";
import ArpiTools from "./src/screens/ArpiTools";
import MainHeader from "./src/Components/MainHeader";
import Serches from "./src/screens/Serches";
const Stack = createNativeStackNavigator();
export default function App() {
LogBox.ignoreAllLogs();
return (
<NativeBaseProvider>
<NavigationContainer>
<ProductState>
<Stack.Navigator initialRouteName="">
<Stack.Screen
name="LogoPage"
component={LogoPage}
options={{
headerShown: false,
}}
/>
<Stack.Screen
name="LoginEmail"
component={LoginEmail}
options={{
headerShown: false,
}}
/>
<Stack.Screen
name="Signup"
component={Signup}
options={{
headerShown: false,
}}
/>
<Stack.Screen
name="Main"
component={Main}
options={{
header: MainHeader,
headerTransparent: false,
}}
/>
<Stack.Screen
name="Cart"
component={Cart}
options={{
header: MainHeader,
headerTransparent: false,
}}
/>
<Stack.Screen
name="ItemScreen"
component={ItemScreen}
options={{
header: MainHeader,
headerTransparent: false,
}}
/>
<Stack.Screen
name="Receipt"
component={Receipt}
options={{
header: MainHeader,
headerTransparent: false,
}}
/>
<Stack.Screen
name="ModalReceipt"
component={ModalReceiptScreen}
options={{
headerShown: false,
}}
/>
<Stack.Screen
name="Buys"
component={Buys}
options={{
header: MainHeader,
headerTransparent: false,
}}
/>
<Stack.Screen
name="Favorites"
component={Favorites}
options={{
header: MainHeader,
headerTransparent: false,
}}
/>
<Stack.Screen
name="MyAccount"
component={MyAccount}
options={{
header: MainHeader,
headerTransparent: false,
}}
/>
<Stack.Screen
name="PaymentMethod"
component={PaymentMethod}
options={{
header: MainHeader,
headerTransparent: false,
}}
/>
<Stack.Screen
name="Help"
component={Help}
options={{
header: MainHeader,
headerTransparent: false,
}}
/>
<Stack.Screen
name="ArpiTools"
component={ArpiTools}
options={{
header: MainHeader,
headerTransparent: false,
}}
/>
<Stack.Screen
name="Serches"
component={Serches}
options={{
header: MainHeader,
headerTransparent: false,
}}
/>
</Stack.Navigator>
<StatusBar backgroundColor="black" style="light" />
</ProductState>
</NavigationContainer>
</NativeBaseProvider>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
});