-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
41 lines (36 loc) · 1.02 KB
/
Copy pathApp.js
File metadata and controls
41 lines (36 loc) · 1.02 KB
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
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React, {Component} from 'react';
import {StyleSheet } from 'react-native';
import LoginScreen from './screens/login-screen';
import HomeScreen from './screens/home';
import CameraScreen from './screens/camera-screen';
import PredictScreen from './screens/predict-screen';
import { createStackNavigator, createAppContainer} from 'react-navigation';
// List of screens contained in the app
const AppNavigator = createStackNavigator(
{
Login:{
screen: LoginScreen // for login with password and username
},
Home: {
screen: HomeScreen // Main screen presenting the options in the app
},
Camera: {
screen: CameraScreen // Screen for taking a picture via camera
},
Predict: {
screen: PredictScreen // screen displaying the prediction made by the app
}
},
{
initialRouteName: "Login",
headerLayoutPreset: 'center'
}
)
export default createAppContainer(AppNavigator)