Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-capture-protection

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-capture-protection

It’s a library for React Native to control simple capture events(i.e. Screenshot or Screen record)

  • 1.5.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
788
increased by3.41%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-capture-protection

simple control capture event (like screenshot, screen record) in Android, 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

FAQs

Package last updated on 19 May 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc