Gracefully exit your React Native app by transitioning it to the home screen before termination.
npm install @sleiv/react-native-graceful-exit
or
yarn add @sleiv/react-native-graceful-exit
import { GracefulExit } from '@sleiv/react-native-graceful-exit';
// ...
GracefulExit.exit().catch((e) => {
console.error(e);
});
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library