diff options
| author | AndrewMihai <41450954+AndrewMihai@users.noreply.github.com> | 2019-03-29 19:38:50 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-29 19:38:50 +0000 |
| commit | d4d4713b8dedab9b56b19a6b51a5a65d8e7c094f (patch) | |
| tree | f72cae5c6759114d3d7b610b891f83d0d25147ed /mobile/components | |
| parent | bab72114837b27eb939d5d9838b788f132478ce8 (diff) | |
| parent | dbe1de2f2c0cbcd9669d86535c27ce3acb5a2403 (diff) | |
Merge pull request #65 from csc301-winter-2019/feat/20
Feat/20
Diffstat (limited to 'mobile/components')
| -rw-r--r-- | mobile/components/GreetingPage.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mobile/components/GreetingPage.js b/mobile/components/GreetingPage.js index 0bc61cf..054d44a 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 @@ -98,7 +102,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> |
