[BREAKGLASS] react-native-screen-capture allows you to protect screens in your app from being captured or recorded, as well as be notified if a screenshot is taken while your app is foregrounded.
Go to file
2022-12-30 12:35:00 +03:00
android Update ScreenCaptureModule.java 2022-12-30 12:19:58 +03:00
example Update example 2022-12-30 01:01:11 +03:00
ios Initial commit 2022-12-28 13:24:14 +03:00
.gitignore Update .gitignore 2022-12-30 01:01:28 +03:00
index.js Initial commit 2022-12-28 13:24:14 +03:00
LICENSE Initial commit 2022-12-28 13:24:14 +03:00
package.json Update package.json 2022-12-28 13:41:34 +03:00
react-native-screen-capture.podspec Update react-native-screen-capture.podspec 2022-12-30 01:01:42 +03:00
README.md Update README.md 2022-12-30 12:35:00 +03:00
TODO Update TODO 2022-12-30 12:18:55 +03:00

react-native-screen-capture

Please do not install. It is under construction.

react-native-screen-capture allows you to protect screens in your app from being captured or recorded, as well as be notified if a screenshot is taken while your app is foregrounded.

Installation

npm i react-native-screen-capture

Usage

import ScreenCapture from 'react-native-screen-capture';

// disable screenshots
ScreenCapture.disallowScreenshot(true);

// enable screenshots
ScreenCapture.disallowScreenshot(false);

// Keep screen on
ScreenCapture.keepScreen(true);

// Keep screen off
ScreenCapture.keepScreen(false);

Roadmap

Status Platform Goal
Android Screenshot disable
🚧 iOS Screenshot disable
Android Keep screen on or off
🚧 iOS Keep screen on or off
🚧 Android Record capture disable
🚧 iOS Record capture disable

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT