-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
40 lines (35 loc) · 1.03 KB
/
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
37
38
39
40
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import {StackNavigator} from 'react-navigation'
import { Card } from 'react-native-elements';
import mapPage from './components/MapPage';
import settingUpPage from './components/SettingUpPage';
import signInPage from './components/SignInPage';
/*
The top level application component containing:
(a) Stack Navigator variable
(b) Rendering this Stack Navigator as RootStack
Design rationale: Navigator components have been chosen for organising navigation routes between the three various
Pages (SignInPage, settingUpPage, and mapPage).
*/
const RootStack = StackNavigator(
{
signIn: {
screen: signInPage,
},
setUp: {
screen: settingUpPage,
},
map: {
screen: mapPage,
}
},
{
initialRouteName: 'signIn',
}
);
export default class App extends React.Component {
render() {
return <RootStack />;
}
}