-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.js
36 lines (34 loc) · 1015 Bytes
/
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
import React from "react";
import { NavigationContainer } from "@react-navigation/native";
import { createStackNavigator } from "@react-navigation/stack";
import SignIn from "./src/screens/SignIn";
import Example from "./src/screens/Example";
import OnBoardScreen from './src/screens/OnBoardScreen';
import DetailsScreen from './src/screens/DetailsScreen';
const Stack = createStackNavigator();
export default () => (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
name="SignIn"
component={SignIn}
options={{ title: "Sign In" }}
/>
<Stack.Screen
name="App"
component={Example}
options={{ title: "Home" }}
/>
<Stack.Screen
name="OnBoardScreen"
component={OnBoardScreen}
options={{ title: "On Board Screen" }}
/>
<Stack.Screen
name="DetailsScreen"
component={DetailsScreen}
options={{ title: "Details" }}
/>
</Stack.Navigator>
</NavigationContainer>
);