react-native-activity-utils
v0.1.1
Published
Provides some utility methods from Activity class to enable showing it on locked screen and keeping screen awake on Android.
Downloads
14
Readme
react-native-activity-utils
Provides some utility methods from Activity class to enable showing it on locked screen and keeping screen awake on Android.
Installation
npm install react-native-activity-utils
yarn add react-native-activity-utils
Usage
import { setFlags } from 'react-native-activity-utils';
// ...
await setFlags({ turnScreenOn: true, showWhenLocked: true, keepScreenOn: true });
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