Exit,close,kill,shutdown app completely for React Native on iOS and Android.
npm install react-native-kill-app




!Platform - Android and iOS

>Support Xcode project with CocoasPod
>Support TypeScript TSX syntax
NOTICE:
- for React Native > 0.47 use react-native-kill-app >=1.x.x
- for React Native < 0.47 use react-native-kill-app <1.x.x
Fast and easy:
``bash`
yarn add react-native-kill-app
react-native link react-native-kill-app
Or manual: add the latest version as dependency to your package.json.
`javascript`
{
"name": "YourProject",
...
},
"dependencies": {
...
"react-native-kill-app": "1.0.4",
...
}
#### iOS
##### Add to Podfile
pod 'react-native-kill-app', :path => '../node_modules/react-native-kill-app'
##### Add to Frameworks
* Add RNExitApp.xcoderproj into your project in the Libraries folder.
* Add the .a file on the General tab of your target under Linked Frameworks And Libraries
* Add the .a file on the Build Phases tab of your target under Link Binary With Libraries
#### Android
* In the settings.gradle
``
include ':react-native-kill-app', ':app'
project(':react-native-kill-app').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-kill-app/android')
`
* In the build.gradle
`
compile project(':react-native-kill-app')
`
* In MainApplication.java
`
import com.github.wumke.RNExitApp.RNExitAppPackage;
...
@Override
protected List
return Arrays.
...
new RNExitAppPackage(),
...
);
}
...
Usage
`javascript``
import RNExitApp from 'react-native-kill-app';
...
RNExitApp.exitApp();
...
https://github.com/wumke/react-native-exit-app