Skip to content

bright-systems/react-native-screenshot-detector

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@bright-systems/react-native-screenshot-detector

NOTE: forked and adapted from https://github.com/blend/react-native-screenshot-detector

The goal is to prevent the user from taking screenshots in your app.

Accordingly, this library exports different APIs for Android and iOS. See Usage below.

Getting started

$ yarn add @bright-systems/react-native-screenshot-detector

$ react-native link @bright-systems/react-native-screenshot-detector

Usage

import ScreenshotDetector from '@bright-systems/react-native-screenshot-detector';

// iOS
ScreenshotDetector.subscribe(() => {
  // yell at the user. We'll leave the choice of obscenities to you
})

// Android
ScreenshotDetector.disableScreenshots()
ScreenshotDetector.enableScreenshots()

About

Screenshot detection in React Native

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 38.3%
  • Java 25.5%
  • JavaScript 21.3%
  • Python 10.1%
  • Ruby 4.8%