aboutsummaryrefslogtreecommitdiff
path: root/mobile/App.js
diff options
context:
space:
mode:
authorivanshen <iwshen11@gmail.com>2019-03-05 04:12:16 +0000
committerivanshen <iwshen11@gmail.com>2019-03-05 04:12:16 +0000
commit786d0aacd27f27875568c7a89d9e1df918fadbf3 (patch)
treee313a040f1a44d8a3f7cfb51736f295b94d76df6 /mobile/App.js
parentc16d2af861f4ed452b2b43f087290f5c0889c34d (diff)
parent18cfcf14ea982d3277d819b88b0dd4df96da40d0 (diff)
Merge branch 'qa' of github.com:csc301-winter-2019/project-team-02 into qa
Diffstat (limited to 'mobile/App.js')
-rw-r--r--mobile/App.js29
1 files changed, 14 insertions, 15 deletions
diff --git a/mobile/App.js b/mobile/App.js
index 7271bc2..4348381 100644
--- a/mobile/App.js
+++ b/mobile/App.js
@@ -1,17 +1,16 @@
import React, { Component } from 'react';
-import { Text, View } from 'react-native';
+import { Text, View, Alert, StyleSheet, Button, AppRegistry, Navigator, TouchableHighlight} from 'react-native';
+import { Ionicons } from '@expo/vector-icons';
+import { createStackNavigator, createAppContainer } from 'react-navigation';
-export default class HelloWorldApp extends Component {
- //Every component needs a render() function
- render() {
- return (
- //<View> acts like the way <div> does in JavaScript
- //style={...} stores properties about where you want the component to be placed
- //and how you want it to look. It's similar to adding CSS styles to HTML elements
- //when creating web pages
- <View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
- <Text>Hello world!</Text>
- </View>
- );
- }
-}
+import GreetingPage from './components/GreetingPage';
+import FormPage from './components/FormPage';
+
+
+const RootStack = createStackNavigator( {GreetingPage: GreetingPage, FormPage: FormPage,},
+ {headerMode: 'none'})
+
+const App = createAppContainer(RootStack)
+
+export default App;
+