From dbe1de2f2c0cbcd9669d86535c27ce3acb5a2403 Mon Sep 17 00:00:00 2001 From: Andrew Date: Thu, 28 Mar 2019 10:15:00 -0400 Subject: Added a back button to the map page --- mobile/screens/MapPage.js | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/mobile/screens/MapPage.js b/mobile/screens/MapPage.js index ea3388b..f8e2a79 100644 --- a/mobile/screens/MapPage.js +++ b/mobile/screens/MapPage.js @@ -43,12 +43,15 @@ export default class Form1 extends Component { this.state.markers[0].latlng.longitude, this.state.markers[0].latlng.latitude] }); - }; + }; + moveToGreetingPage = () => { + this.props.navigation.navigate('GreetingPage'); + } render() { return ( - + + { this.moveToGreetingPage() }}> + + Back + + ); } @@ -84,6 +94,16 @@ const styles = StyleSheet.create( { width: '100%', flex: 1, position: 'absolute', + bottom:60, + backgroundColor: '#c0392b', + flexDirection: 'row', + justifyContent: 'center', + alignItems: 'stretch' + }, + second_button_container: { + width: '100%', + flex: 1, + position: 'absolute', bottom:0, backgroundColor: '#535c68', flexDirection: 'row', -- cgit v1.2.3