
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
react-native-capture-protection
Advanced tools
It’s a library for React Native to control simple capture events(i.e. Screenshot or Screen record)
simple control capture event (like screenshot, screen record) in Android, iOS Native
npm install react-native-capture-protection
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
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library
FAQs
🛡️ A React Native library to prevent and detect for screen capture, screenshots and app switcher for enhanced security. Fully compatible with both Expo and CLI.
The npm package react-native-capture-protection receives a total of 3,037 weekly downloads. As such, react-native-capture-protection popularity was classified as popular.
We found that react-native-capture-protection demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.