You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-native-capture-protection

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-capture-protection

react-native control screenshot, screen record event

1.1.0
Source
npmnpm
Version published
Weekly downloads
4.3K
12.02%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-capture-protection

simple control capture event (like screenshot, screen record) in iOS Native

Installation

npm install react-native-capture-protection

Preview

prevent, allow screenshot in iOS

Simulator Screen Recording - iPhone 14 - 2022-12-09 at 16 02 15

Usage

import {
  CaptureProtection,
  CaptureProtectionModuleStatus,
} from 'react-native-capture-protection';

CaptureProtection.addRecordEventListener(({ status, isPrevent }) => {
  if (
    status == CaptureProtectionModuleStatus.RECORD_DETECTED_START &&
    isPrevent?.record
  ) {
    Alert.alert('Warning', 'record detected');
  }
});

await CaptureProtection.preventScreenRecord();
await CaptureProtection.allowScreenRecord();

More Infomation, please read this

  • method
  • type
  • migration to v1

Contributing

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

License

MIT

Made with create-react-native-library

Keywords

react-native

FAQs

Package last updated on 12 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts