1.9.20 β’ Published 4 months ago
react-native-capture-protection v1.9.20
react-native-capture-protection
π Simple control capture event (like screenshot, screen record) in Android, iOS + React Native
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
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
1.9.20
4 months ago
1.9.20-beta0
4 months ago
1.9.16
5 months ago
1.9.15
5 months ago
1.9.14
8 months ago
1.9.13
8 months ago
1.9.12
10 months ago
1.9.11
11 months ago
1.9.10
12 months ago
1.9.9
1 year ago
1.9.8
1 year ago
1.9.7
1 year ago
1.9.6
1 year ago
1.9.5
1 year ago
1.9.4
1 year ago
1.9.3
1 year ago
1.9.2
2 years ago
1.9.1
2 years ago
1.8.0-bc38943
2 years ago
1.9.0
2 years ago
1.8.0
2 years ago
1.7.0
2 years ago
1.6.0
2 years ago
1.9.0-beta
2 years ago
1.2.0
2 years ago
1.5.1
2 years ago
1.5.0
2 years ago
1.4.0
2 years ago
1.3.0
2 years ago
1.1.0
3 years ago
1.0.0
3 years ago
0.1.0
3 years ago