diff options
| author | Ivan Shen <iwshen11@gmail.com> | 2019-03-28 19:38:23 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-28 19:38:23 +0000 |
| commit | 143891d8467bf80209255fd55da1739625583858 (patch) | |
| tree | 568e5fa7c38757ec64943aa4f37143728cba6eb7 /mobile/components | |
| parent | a4de620727d4e7d294ced1d1e1c956c0be8c0cd2 (diff) | |
| parent | 3dd064805b0c4930886a99dccc9d4d980e8c15e0 (diff) | |
Merge branch 'qa' into feat/28
Diffstat (limited to 'mobile/components')
| -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> |
