-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
54 lines (51 loc) · 2.14 KB
/
App.tsx
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
import React, { useEffect } from "react";
import { StyleSheet, Text, View, PermissionsAndroid } from "react-native";
import { NativeRouter, Route, Switch } from "react-router-native";
import { Provider } from "react-redux";
import { createStore } from "redux";
import reducers from "./src/reducers";
import MainScreen from "./src/screens/MainScreen";
import InfoScreen from "./src/screens/InfoScreen";
import PathsScreen from "./src/screens/PathsScreen";
import MapScreen from "./src/screens/MapScreen";
import EssentialScreen from "./src/screens/EssentialScreen";
import ScanQrScreen from "./src/screens/ScanQrScreen";
import AlertScreen from "./src/screens/AlertScreen";
import RestScreen from "./src/screens/RestScreen";
import NotificationScreen from "./src/screens/NotificationScreen";
import LoginScreen from "./src/screens/LoginScreen";
import SignUpScreen from "./src/screens/SignUpScreen";
import ConsultScreen from "./src/screens/ConsultScreen";
const store = createStore(reducers);
export default function App() {
return (
<Provider store={store}>
<NativeRouter>
<View style={styles.container}>
<Switch>
<Route exact path="/" component={MainScreen} />
<Route path="/InfoScreen" component={InfoScreen} />
<Route path="/MapScreen" component={MapScreen} />
<Route path="/PathsScreen" component={PathsScreen} />
<Route path="/EssentialScreen" component={EssentialScreen} />
<Route path="/ScanQrScreen" component={ScanQrScreen} />
<Route path="/AlertScreen" component={AlertScreen} />
<Route path="/NotificationScreen" component={NotificationScreen} />
<Route path="/RestScreen" component={RestScreen} />
<Route path="/LoginScreen" component={LoginScreen} />
<Route path="/SignUpScreen" component={SignUpScreen} />
<Route path="/ConsultScreen" component={ConsultScreen} />
</Switch>
</View>
</NativeRouter>
</Provider>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
});