Skip to content

bokuhe/react-native-graceful-exit

Repository files navigation

react-native-graceful-exit

Gracefully exit your React Native app by transitioning it to the home screen before termination.

Installation

npm install @sleiv/react-native-graceful-exit

or

yarn add @sleiv/react-native-graceful-exit

Usage

import { GracefulExit } from '@sleiv/react-native-graceful-exit';

// ...
GracefulExit.exit().catch((e) => {
  console.error(e);
});

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library