如何从代码退出应用程序,但是不会调用崩溃通知。
准备:
npm install react-native-exit-app --save
react-native link react-native-exit-app
使用
import RNExitApp from 'react-native-exit-app';
RNExitApp.exitApp();
如何从代码退出应用程序,但是不会调用崩溃通知。
准备:
npm install react-native-exit-app --save
react-native link react-native-exit-app
使用
import RNExitApp from 'react-native-exit-app';
RNExitApp.exitApp();