feat: add preference on android to not confirm when exiting (#1870)

This commit is contained in:
Aman Harwara
2022-10-24 23:37:37 +05:30
committed by GitHub
parent cca0a366a5
commit 28ef9054fa
4 changed files with 35 additions and 3 deletions

View File

@@ -567,7 +567,12 @@ export class MobileDevice implements MobileDeviceInterface {
return true
}
confirmAndExit() {
exitApp(shouldConfirm?: boolean) {
if (!shouldConfirm) {
SNReactNative.exitApp()
return
}
Alert.alert(
'Close app',
'Do you want to close the app?',