-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
26 lines (20 loc) · 860 Bytes
/
App.js
File metadata and controls
26 lines (20 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import DefaultPage from './DefaultPage.js'
import { NavigationContainer} from '@react-navigation/native';
import { createNativeStackNavigator} from '@react-navigation/native-stack';
import Success from './success.js';
import Fail from './fail.js';
import PostReqFail from './postReqFail.js';
import React from 'react';
const Stack = createNativeStackNavigator();
export default function App() {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="Home">
<Stack.Screen name="Home" component={DefaultPage}/>
<Stack.Screen name="Success!" component={Success} />
<Stack.Screen name="Required Data Not Provided" component={Fail} />
<Stack.Screen name="Post Request Failed" component={PostReqFail} />
</Stack.Navigator>
</NavigationContainer>
);
}