Skip to content

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';// ...awaitsetFlags({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

About

A React Native native module that provides some utility methods from the Activity class to enable showing it on a locked screen and keeping the screen awake on Android.

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages