-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.js
53 lines (47 loc) · 1.43 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
import React from "react";
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import Login from "./pages/Login";
import Register from "./pages/Register";
import BottomNavBar from "./pages/BottomNavBar";
import Passenger from "./pages/Passenger";
import header from "@react-navigation/stack/src/views/Header/Header";
import GenerateTicket from "./pages/GenerateTicket";
const Stack = createNativeStackNavigator();
const App = () => {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="Login">
<Stack.Screen
name="Login"
component={Login}
options={{ headerShown: false }}
/>
<Stack.Screen
name="Register"
component={Register}
options={{ headerShown: false }}
/>
<Stack.Screen
name="GoTicket"
component={BottomNavBar}
options={{ headerShown: false }}
/>
<Stack.Screen
name="PassengerNav"
component={Passenger}
options={{ headerShown: false }}
/>
<Stack.Screen
name="GenerateTicket"
component={GenerateTicket}
options={({ navigation }) => ({
headerShown: false,
screenProps: { navigation },
})}
/>
</Stack.Navigator>
</NavigationContainer>
);
};
export default App;