@sleiv/react-native-graceful-exit
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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

Package Sidebar

Install

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

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

43.3 kB

Total Files

25

Last publish

Collaborators

  • sleiv