File tree Expand file tree Collapse file tree 5 files changed +8
-10
lines changed
modules3rdParty/react-native-exit-app Expand file tree Collapse file tree 5 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ import {
4949 AppEventBusNames ,
5050 appEventBus ,
5151} from '@onekeyhq/shared/src/eventBus/appEventBus' ;
52+ import { exitApp } from '@onekeyhq/shared/src/exitApp' ;
5253import debugLogger from '@onekeyhq/shared/src/logger/debugLogger' ;
53- import RNExitApp from '@onekeyhq/shared/src/modules3rdParty/react-native-exit-app' ;
5454import platformEnv from '@onekeyhq/shared/src/platformEnv' ;
5555import appStorage from '@onekeyhq/shared/src/storage/appStorage' ;
5656import timerUtils from '@onekeyhq/shared/src/utils/timerUtils' ;
@@ -167,8 +167,7 @@ class ServiceApp extends ServiceBase {
167167 @backgroundMethod ( )
168168 exitApp ( ) {
169169 if ( platformEnv . isNative ) {
170- if ( ! RNExitApp ) return ;
171- return RNExitApp . exitApp ( ) ;
170+ exitApp ( ) ;
172171 }
173172 }
174173
Original file line number Diff line number Diff line change 1+ import RNExitApp from 'react-native-exit-app' ;
2+
3+ export function exitApp ( ) {
4+ return RNExitApp . exitApp ( ) ;
5+ }
Original file line number Diff line number Diff line change 1+ export function exitApp ( ) { }
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments