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
0
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.9.11
  • Source
  • npm
  • Socket score

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

react-native-capture-protection

🚀 Simple control capture event (like screenshot, screen record) in Android, iOS + React Native

Simulator Screen Recording

Simulator Screen Recording - iPhone 15 Pro - 2024-07-02 at 21 19 17

Features

  • iOS Capture Event via screen recording, capture capture with Listener
  • allow, prevent Android, iOS Capture Event
  • allow, prevent iOS Record Screen
  • Provider, Hooks
  • = RN 0.64

  • support Android 14

Installation

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

const Component = (props) => {
  const { isPrevent, status } = useCaptureProtection();

  React.useEffect(() => {
    console.log('Prevent Status is', isPrevent);
  }, [isPrevent]);
  React.useEffect(() => {
    console.log('Capture Status is', isCapturedStatus(status));
  }, [status]);

  const onPrevent = () => {
    CaptureProtection.preventScreenRecord();
  }
  const onAllow = () => {
    CaptureProtection.allowScreenRecord();
  }

  ...

};

Docs

  • method
  • type

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 28 Jul 2024

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