/react-native-exit

React native exit app package when using RN as a library

Primary LanguageJavaMIT LicenseMIT

react-native-exit

Getting started

$ npm install react-native-exit --save

Mostly automatic installation

$ react-native link react-native-exit

Manual installation

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-exit and add RNExit.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNExit.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Usage

import RNExit from 'react-native-exit';

// TODO: What to do with the module?
RNExit;