Need help with react-native-exit-app?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

wumke
238 Stars 78 Forks MIT License 48 Commits 5 Opened issues

Description

Exit,close,kill,shutdown app completely for React Native on iOS and Android.

Services available

!
?

Need anything else?

Contributors list

# 55,770
Java
Objecti...
React N...
React
4 commits
# 423,376
Java
React N...
Objecti...
2 commits
# 383,439
Java
React N...
Objecti...
2 commits
# 21,200
Atom
Terrafo...
Rust
React N...
2 commits
# 413,001
PHP
Laravel
React N...
Objecti...
2 commits
# 237,719
Symfony
PHP
Shell
compose...
1 commit
# 31,504
JavaScr...
HTML
Firebas...
data-st...
1 commit
# 551,515
Java
React N...
Objecti...
1 commit
# 57,623
Objecti...
react-n...
Kotlin
React N...
1 commit
# 33,950
Java
Objecti...
popup-w...
React
1 commit
# 530,643
Java
React N...
Objecti...
1 commit

react-native-exit-app

Exit / Close / Kill / shutdown your react native app. Does not invoke a crash notification.

NOTICE: - for React Native < 0.47 use react-native-exit-app <1.x.x - for React Native > 0.47 use react-native-exit-app >=1.x.x

Setup

Fast and easy:

bash
npm install react-native-exit-app --save
react-native link react-native-exit-app

Or manual: add the latest version as dependeny to your package.json.

{
  "name": "YourProject",
  ...
  },
  "dependencies": {
    ...
    "react-native-exit-app": "0.1.0",
    ...
  }

iOS

  • 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-exit-app', ':app'
    project(':react-native-exit-app').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-exit-app/android')
    
  • In the build.gradle
    compile project(':react-native-exit-app')
    
  • In MainApplication.java
    import com.github.wumke.RNExitApp.RNExitAppPackage;
    ...
    @Override
    protected List getPackages() {
      return Arrays.asList(
        ...
        new RNExitAppPackage(),
        ...
      );
    }
    ...
    
    ## Usage
import RNExitApp from 'react-native-exit-app';
...
RNExitApp.exitApp();
...

Versioning

This project uses semantic versioning: MAJOR.MINOR.PATCH. This means that releases within the same MAJOR version are always backwards compatible. For more info see semver.org.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.