diff options
Diffstat (limited to 'mobile/components/GreetingPage.js')
| -rw-r--r-- | mobile/components/GreetingPage.js | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/mobile/components/GreetingPage.js b/mobile/components/GreetingPage.js index 84c20e7..88c3de3 100644 --- a/mobile/components/GreetingPage.js +++ b/mobile/components/GreetingPage.js @@ -43,6 +43,18 @@ export default class GreetingPage extends Component { } }; + moveToFormPage = () => { + this.props.navigation.navigate('FormPage', + {coordinates : [ + this.state.locationResult.longitude, + this.state.locationResult.latitude] + }); + }; + + moveToMapPage = () => { + this.props.navigation.navigate('MapPage'); + } + render() { //<View> acts like the way <div> does in JavaScript @@ -93,7 +105,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> |
