Skip to content

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.

License

Notifications You must be signed in to change notification settings

rcorrie/react-native-screen-capture

 
 

Repository files navigation

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

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

Status Platform Goal
Android Screenshot disable
iOS Screenshot disable
Android Keep awake on or off
iOS Keep awake on or off

Contributing

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

License

MIT

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 42.9%
  • Objective-C 27.0%
  • JavaScript 16.3%
  • Ruby 11.0%
  • Starlark 2.8%