如何从代码退出应用程序,但是不会调用崩溃通知。
准备:
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();
本文标题:React Native 中 退出app实战
本文链接:https://www.haomeiwen.com/subject/gbwliftx.html
网友评论