-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
44 lines (38 loc) · 1.33 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
import * as React from "react";
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import { SearchScreen } from "./src/screens/SearchScreen";
import { CustomHeader } from "./src/components/CustomHeader";
import { LineScreen } from "./src/screens/LineScreen";
import { StopScreen } from "./src/screens/StopScreen";
import { InfoScreen } from "./src/screens/InfoScreen";
const Stack = createNativeStackNavigator();
function App() {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="Home" >
<Stack.Screen
name="search"
component={SearchScreen}
options={{ title: "Recherche ligne/arret", header: CustomHeader
}}
/>
<Stack.Screen
name="line"
component={LineScreen}
options={{ title: "Ligne...", header: CustomHeader
}}/>
<Stack.Screen
name="stop"
component={StopScreen}
options={{ title: "Ligne...", header: CustomHeader
}}/>
<Stack.Screen
name="info"
component={InfoScreen}
options={{ title: "A propos", header: CustomHeader}}/>
</Stack.Navigator>
</NavigationContainer>
);
}
export default App;