Skip to content

12ya/react-native-awake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

react-native-awake

keeps your screen awake ChatGPT Image May 17, 2025, 08_13_36 PM

Installation

npm install react-native-awake

Usage

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();

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