From ec3018e222a25c53857b48140954688829ac1d27 Mon Sep 17 00:00:00 2001 From: Kumar Damani Date: Fri, 15 Mar 2019 17:42:06 -0400 Subject: added back the back button --- mobile/screens/Form1.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/mobile/screens/Form1.js b/mobile/screens/Form1.js index 3be77f8..a14d647 100644 --- a/mobile/screens/Form1.js +++ b/mobile/screens/Form1.js @@ -1,5 +1,5 @@ import React, { Component } from 'react'; -import { StyleSheet, Button, KeyboardAvoidingView } from 'react-native'; +import { StyleSheet, Button, View, KeyboardAvoidingView } from 'react-native'; import { Constants } from 'expo'; import t from 'tcomb-form-native'; @@ -107,7 +107,8 @@ export default class Form1 extends Component { //// TODO: handle the response from the serve and decide what to display //// based on that //// for now just to back to the home page - //this.props.navigation.navigate('GreetingPage'); + alert("Thank you for your contribution."); + this.props.navigation.navigate('GreetingPage'); } handleSubmit() { @@ -139,7 +140,14 @@ export default class Form1 extends Component { value={this.state.value} onChange={this.onChange.bind(this)} /> -