-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathApp.js
105 lines (92 loc) · 4.51 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
import React, { useState, useEffect } from "react";
import { Provider } from "react-redux";
import { createStackNavigator } from "@react-navigation/stack";
import { NavigationContainer } from "@react-navigation/native";
import store from "./src/common/redux/store.js";
import TabBar from "./src/routes/TabBar";
import Logo from "./src/screens/Logo/Logo";
import OnBoarding from "./src/screens/Onboarding/OnBoarding";
import Home from "./src/screens/Home/Home";
import Login from "./src/screens/Login/Login";
import ForgotPass from "./src/screens/ForgotPassword/ForgotPassword.jsx";
import Register from "./src/screens/Register/Register";
import Loading from "./src/screens/Loading/Loading";
import CardDetail from "./src/screens/Card Detail/CardDetail";
import MapDetail from './src/screens/Card Detail/MapDetail'
import WebViewScreen from "./src/screens/WebViewScreen/WebViewScreen.jsx";
import MercadoPagoCard from "./src/screens/MercadoPagoCard/MercadoPagoCard.jsx";
import moment from "moment";
import "moment/locale/es";
//imports del Form
import Title_Fee_Desc from "./src/screens/FormEvent/Title_Fee_Desc";
import FormDatePicker from "./src/screens/FormEvent/FormDatePicker.jsx";
import FormMaps from "./src/screens/FormEvent/FormMaps.jsx";
import FormCardPreview from "./src/screens/FormEvent/FormCardPreview.jsx";
import Profile from "./src/screens/Profile/Profile.jsx";
import EditProfile from "./src/screens/Edit Profile/EditProfile.jsx";
import AppLoading from "expo-app-loading";
import * as Font from "expo-font";
import UpdatePassword from "./src/screens/UpdatePassword/UpdatePassword.jsx";
import PaymentCalc from "./src/screens/FormEvent/PaymentCalc/PaymentCalc.jsx";
import EventsMaps from "./src/screens/EventsMaps/EventsMaps.jsx";
import { LogBox } from 'react-native';
// Ignore log notification by message
LogBox.ignoreLogs(['Warning: ...']);
//Ignore all log notifications
LogBox.ignoreAllLogs();;
export default function App() {
const Stack = createStackNavigator();
moment.locale("es");
const [fontsLoaded, setFontsLoaded] = useState(false);
useEffect(() => {
if (!fontsLoaded) {
loadFonts();
}
});
const loadFonts = async () => {
await Font.loadAsync({
"Gotham-Bold": require("./src/assets/Fonts/GothamRounded-Bold.otf"),
"Gotham-BoldItalic": require("./src/assets/Fonts/GothamRounded-BoldItalic.otf"),
"Gotham-Book": require("./src/assets/Fonts/GothamRounded-Book.otf"),
"Gotham-BookItalic": require("./src/assets/Fonts/GothamRounded-BookItalic.otf"),
"Gotham-Light": require("./src/assets/Fonts/GothamRounded-Light.otf"),
"Gotham-LightItalic": require("./src/assets/Fonts/GothamRounded-LightItalic.otf"),
"Gotham-Medium": require("./src/assets/Fonts/GothamRounded-Medium.otf"),
"Gotham-MediumItalic": require("./src/assets/Fonts/GothamRounded-MediumItalic.otf"),
});
setFontsLoaded(true);
};
if (!fontsLoaded) {
return <AppLoading />;
}
return (
<Provider store={store}>
<NavigationContainer>
<Stack.Navigator screenOptions={{ headerShown: false }}>
<Stack.Screen name="Logo" component={Logo} />
<Stack.Screen name="Onboarding" component={OnBoarding} />
<Stack.Screen name="Loading" component={Loading} />
<Stack.Screen name="TabBar" component={TabBar} />
<Stack.Screen name="Home" component={Home} />
<Stack.Screen name="WebViewScreen" component={WebViewScreen} />
<Stack.Screen name="MercadoPagoCard" component={MercadoPagoCard} />
<Stack.Screen name="CardDetail" component={CardDetail} />
{/*FORM SECTION*/}
<Stack.Screen name="Form" component={Title_Fee_Desc} />
<Stack.Screen name="FormDatePicker" component={FormDatePicker} />
<Stack.Screen name="FormMaps" component={FormMaps} />
<Stack.Screen name="FormCardPreview" component={FormCardPreview} />
<Stack.Screen name="PaymentCalc" component={PaymentCalc} />
<Stack.Screen name="Profile" component={Profile} />
<Stack.Screen name="EventsMaps" component={EventsMaps} />
<Stack.Screen name="EditProfile" component={EditProfile} />
<Stack.Screen name="UpdatePassword" component={UpdatePassword} />
<Stack.Screen name="Login" component={Login} />
<Stack.Screen name="ForgotPass" component={ForgotPass} />
<Stack.Screen name="Register" component={Register} />
<Stack.Screen name="MapDetail" component={MapDetail} />
</Stack.Navigator>
</NavigationContainer>
</Provider>
);
}