Skip to content

Livan-pro/react-native-activity-utils

Repository files navigation

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