npm install react-native-awake
just call inside of component that you want to keep awake
import { useAwake } from 'react-native-awake';
// ...
/**
* useAwake hook will keep the screen awake for the duration of the component's lifecycle
*/
useAwake();
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library