aboutsummaryrefslogtreecommitdiff
path: root/mobile/components/GreetingPage.js
diff options
context:
space:
mode:
authorAndrewMihai <41450954+AndrewMihai@users.noreply.github.com>2019-03-28 17:35:46 +0000
committerGitHub <noreply@github.com>2019-03-28 17:35:46 +0000
commit3dd064805b0c4930886a99dccc9d4d980e8c15e0 (patch)
treebe61c29482e1e9592794b976b975c56ea9fa0096 /mobile/components/GreetingPage.js
parent19cea05b802a43f7c8bef95428b75a7b778ed502 (diff)
parentdbe1de2f2c0cbcd9669d86535c27ce3acb5a2403 (diff)
Merge pull request #57 from csc301-winter-2019/feat/20
Feat/20
Diffstat (limited to 'mobile/components/GreetingPage.js')
-rw-r--r--mobile/components/GreetingPage.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/mobile/components/GreetingPage.js b/mobile/components/GreetingPage.js
index 9301fbc..035ee41 100644
--- a/mobile/components/GreetingPage.js
+++ b/mobile/components/GreetingPage.js
@@ -45,6 +45,10 @@ export default class GreetingPage extends Component {
});
};
+ moveToMapPage = () => {
+ this.props.navigation.navigate('MapPage');
+ }
+
render() {
//<View> acts like the way <div> does in JavaScript
@@ -95,7 +99,9 @@ export default class GreetingPage extends Component {
</TouchableHighlight>
- <TouchableHighlight disabled style={styles.second_button_container}>
+ <TouchableHighlight
+ style={styles.second_button_container}
+ onPress={() => { this.moveToMapPage() }}>
<View style={styles.press_button}>
<View>