[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 11:55:13 +03:00
android Update build.gradle 2022-12-30 11:55:13 +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-28 13:25:32 +03:00
TODO Create TODO 2022-12-28 13:25:20 +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);

Roadmap

Status Platform Goal
🚧 Android Screenshot disable
🚧 iOS Screenshot disable
🚧 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