Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
react-native-screenshield
Advanced tools
Prevent Screenshot Image, block doing screenshot dynamically in your iOS/Android app.
For iOS - using ScreenShieldKit
For Android - using flag FLAG_SECURE
ScreenShieldKit.framework
in ios project dir.npm install react-native-screenshield
or
yarn add react-native-screenshield
ReactNative auto-linking will do the magic for you.
ProtectedView
props:
name | required | desc |
---|---|---|
source | yes | check RN Image prop |
style | yes | check RN Image prop |
It also accepts all RN Image
props.
Methods:
name | desc |
---|---|
init(key?: string): void | iOS - key is required - ScreenShieldKit License, Android - not required, not used |
isInitialized(): boolean | Return if module was initialized |
onSettingFlagFailed?: (error: Error) => void | method which is failed when settings flag on android failed |
import ScreenShield, { ProtectedView } from "react-native-screenshield";
// ...
ScreenShield.init('abdc'); // config for iOS and Android
or
ScreenShield.init(); // it will just work for Android then, on iOS fallback `Image` component will be used for `ProtectedView`
// ...
<ProtectedView source={image} style={{ width: 100, height: 100 }} />
MIT
FAQs
Prevent Screenshot Image
The npm package react-native-screenshield receives a total of 36 weekly downloads. As such, react-native-screenshield popularity was classified as not popular.
We found that react-native-screenshield demonstrated a not healthy version release cadence and project activity because the last version was released 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.