diff options
| author | Andrew <andrew.mihai@mail.utoronto.ca> | 2019-03-26 20:39:43 +0000 |
|---|---|---|
| committer | Andrew <andrew.mihai@mail.utoronto.ca> | 2019-03-26 20:39:43 +0000 |
| commit | 1e98ac50dc32f1e333811f25ebf06925ada110b3 (patch) | |
| tree | f2a2401b5a82e56a249ba5d2a74a31de637b2787 /mobile/components/GreetingPage.js | |
| parent | 1dcd5ea52701be36c9e661ddd42c338c9ae4efc7 (diff) | |
6ix map commit 2.0
Diffstat (limited to 'mobile/components/GreetingPage.js')
| -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 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> |
