react-native-bypass-keyguard
Version:
React Native Bypass power button password for Android only
58 lines (36 loc) • 1.05 kB
Markdown
React Native Bypass power button password for Android only
Using npm:
```sh
npm install react-native-bypass-keyguard
```
or using yarn:
```sh
yarn add react-native-bypass-keyguard
```
Check out [the documentation website](https://developer.android.com/reference/android/view/WindowManager.LayoutParams).
```js
import {
showOverKeyguard,
clearShowOverKeyguard,
} from 'react-native-bypass-keyguard';
// ...
React.useEffect(() => {
showOverKeyguard();
return () => {
clearShowOverKeyguard();
};
}, []);
```
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
- [Mohammad Saqlain](https://mohammadsaqlain.netlify.app/)
To keep this library maintained and up-to-date please consider [follow it on GitHub](https://github.com/saqlain110)
[](./LICENSE)
---