diff options
| author | Andrew <andrew.mihai@mail.utoronto.ca> | 2019-02-24 15:24:43 +0000 |
|---|---|---|
| committer | Andrew <andrew.mihai@mail.utoronto.ca> | 2019-02-24 15:24:43 +0000 |
| commit | 9438381045c142d38bd1aa28c307723fdb016e4a (patch) | |
| tree | 6846f7baded0365660ad4d659739fb2cc65a5486 /mobile/App.js | |
| parent | 0a83e2a2a42e168d18c66888bba3d3bebbbc3d29 (diff) | |
Created the greeting page of application. Page contains button to fetch
location, and button to drop pin. Both buttons lead to blank pages. This is an initial prototype.
Diffstat (limited to 'mobile/App.js')
| -rw-r--r-- | mobile/App.js | 29 |
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; + |
