From 420149ddf59f293f59b080424adb6a4d97d06ff0 Mon Sep 17 00:00:00 2001 From: xuhaoy Date: Tue, 26 Feb 2019 13:09:25 -0500 Subject: can now successfully exit the app --- mobile/screens/Success.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mobile/screens/Success.js b/mobile/screens/Success.js index 3d66de5..e3b7c63 100644 --- a/mobile/screens/Success.js +++ b/mobile/screens/Success.js @@ -1,15 +1,15 @@ import React, { Component } from 'react'; -import {Text, Alert, AppRegistry, Button, StyleSheet, View } from 'react-native'; +import {Text, Alert, AppRegistry, Button, StyleSheet, View, BackHandler } from 'react-native'; + export default class Success extends Component { _onPressButton() { - exitApp() + BackHandler.exitApp() } render() { return ( - Thanks for letting us know. -- cgit v1.2.3