-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
71 lines (69 loc) · 2.12 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
//cd Projects/ReactNative/sakha
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import Home from "./src/Screens/Home";
import Login from "./src/Screens/Login";
import SignUp from "./src/Screens/SignUp";
import Navbar from "./src/Components/Navbar";
import Profile from "./src/Screens/Profile";
import Header from "./src/Components/Header";
import MyAlert from "./src/Components/MyAlert";
import UserState from "./src/Context/users/UserState";
import YourTravel from "./src/Screens/YourTravel";
import Contact from "./src/Screens/Contact";
import Create from "./src/Screens/Create";
import FindingMap from "./src/Screens/FindingMap";
export default function App() {
const Stack = createNativeStackNavigator();
return (
<UserState>
<NavigationContainer>
<Header />
<MyAlert />
<Stack.Navigator initialRouteName="Home">
<Stack.Screen
options={{ headerShown: false }}
name="Home"
component={Home}
/>
<Stack.Screen
options={{ headerShown: false }}
name="Login"
component={Login}
/>
<Stack.Screen
options={{ headerShown: false }}
name="SignUp"
component={SignUp}
/>
<Stack.Screen
options={{ headerShown: false }}
name="YourTravel"
component={YourTravel}
/>
<Stack.Screen
options={{ headerShown: false }}
name="Profile"
component={Profile}
/>
<Stack.Screen
options={{ headerShown: false }}
name="Create"
component={Create}
/>
<Stack.Screen
options={{ headerShown: false }}
name="Contact"
component={Contact}
/>
<Stack.Screen
options={{ headerShown: false }}
name="FindingMap"
component={FindingMap}
/>
</Stack.Navigator>
<Navbar />
</NavigationContainer>
</UserState>
);
}