-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
28 lines (24 loc) · 956 Bytes
/
Copy pathApp.js
File metadata and controls
28 lines (24 loc) · 956 Bytes
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
import React from "react";
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import formScreen from "./src/views/screens/formScreen";
import ResultScreen from "./src/views/screens/resultScreen";
import ResultScreenBackup from "./src/backups/resultScreenBackup";
const Stack = createNativeStackNavigator();
/**
* The main page of the application
* calls the formScreen and ResultScreen
* formScreen --> user input the relevant details such as the address
* ResultScreen --> the screeen that output the predicted value
*/
const App = () => {
return (
<NavigationContainer>
<Stack.Navigator screenOptions={{ headerShown: false }}>
<Stack.Screen name="formScreen" component={formScreen} />
<Stack.Screen name="ResultScreen" component={ResultScreen} />
</Stack.Navigator>
</NavigationContainer>
);
};
export default App;