0.2.3 • Published 10 months ago

react-native-screen-capture v0.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

react-native-screen-capture

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.

Keep Awake, keep the screen from going to sleep. iOS and Android

Installation

npm i react-native-screen-capture

Preview

npm.io

Usage

import { disallowScreenshot, keepAwake } from 'react-native-screen-capture';

// disable screenshots
disallowScreenshot(true);

// enable screenshots
disallowScreenshot(false);

// Keep awake true
keepAwake(true);

// Keep awake false
keepAwake(false);

Roadmap

StatusPlatformGoal
AndroidScreenshot disable
iOSScreenshot disable
AndroidKeep awake on or off
iOSKeep awake on or off

Contributing

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

License

MIT