diff options
| author | xuhaoy <xuhao.yu@mail.utoronto.ca> | 2019-02-26 18:09:25 +0000 |
|---|---|---|
| committer | xuhaoy <xuhao.yu@mail.utoronto.ca> | 2019-02-26 18:09:25 +0000 |
| commit | 420149ddf59f293f59b080424adb6a4d97d06ff0 (patch) | |
| tree | 956c32a6b1a84255fb30a1ec204afd4a45980d46 /mobile | |
| parent | f10ad96943ad57168d49f3437e9086b334a63cc1 (diff) | |
can now successfully exit the appfeat/16
Diffstat (limited to 'mobile')
| -rw-r--r-- | mobile/screens/Success.js | 6 |
1 files 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 ( - <View style={{padding: 40}}> <Text>Thanks for letting us know.</Text> |
