[BREAKGLASS] Append-only mirror of github.com/bluewallet/react-native-prevent-screenshot-ios-android
Go to file
Dominic Talbot 133004eff4
Some checks failed
CI / build-ios (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
CI / build-library (push) Has been cancelled
CI / build-android (push) Has been cancelled
Merge pull request #1 from domtalbot/remove-placeholder-text
Remove the placeholder text to fix the view on iOS
2025-01-14 11:23:48 +00:00
.github initial commit 2023-08-19 22:50:12 +05:30
android initial commit 2023-08-19 22:50:12 +05:30
cpp initial commit 2023-08-19 22:50:12 +05:30
example updated example package name and updated the main version to 1.0.0 2023-08-21 10:03:38 +05:30
ios Remove the placeholder text to fix the view on iOS 2025-01-14 11:22:57 +00:00
scripts initial commit 2023-08-19 22:50:12 +05:30
src initial commit 2023-08-19 22:50:12 +05:30
.editorconfig initial commit 2023-08-19 22:50:12 +05:30
.gitattributes initial commit 2023-08-19 22:50:12 +05:30
.gitignore initial commit 2023-08-19 22:50:12 +05:30
.nvmrc initial commit 2023-08-19 22:50:12 +05:30
.watchmanconfig initial commit 2023-08-19 22:50:12 +05:30
.yarnrc initial commit 2023-08-19 22:50:12 +05:30
babel.config.js initial commit 2023-08-19 22:50:12 +05:30
CODE_OF_CONDUCT.md initial commit 2023-08-19 22:50:12 +05:30
CONTRIBUTING.md initial commit 2023-08-19 22:50:12 +05:30
lefthook.yml initial commit 2023-08-19 22:50:12 +05:30
LICENSE initial commit 2023-08-19 22:50:12 +05:30
package.json ios 17 Fix 2023-10-03 14:23:32 +05:30
react-native-prevent-screenshot-ios-android.podspec initial commit 2023-08-19 22:50:12 +05:30
README.md Update README.md 2023-08-20 12:46:10 +05:30
tsconfig.build.json initial commit 2023-08-19 22:50:12 +05:30
tsconfig.json initial commit 2023-08-19 22:50:12 +05:30
turbo.json initial commit 2023-08-19 22:50:12 +05:30
yarn.lock initial commit 2023-08-19 22:50:12 +05:30

react-native-prevent-screenshot-ios-android

This package allows user to block taking screenshot, screen recording and screen sharing of specific screens for both Android and IOS apps

Installation

npm install react-native-prevent-screenshot-ios-android

Usage

import { enableSecureView, disableSecureView, forbidAndroidShare, allowAndroidShare } from 'react-native-prevent-screenshot-ios-android';
import { Platform } from 'react-native'
// ...

if (Platform.OS === 'android') {
  forbidAndroidShare(); //This function blocks the Screen share/Recording and taking screenshot for android devices.
  allowAndroidShare(); //This function allows to provide back the Screen share/Recording and screenshot functionality for android devices
}
if (Platform.OS == 'ios') {
  enableSecureView(); //This function blocks the Screen share/Recording and taking screenshot for iOS devices.
  disableSecureView(); //This function allows to provide back the Screen share/Recording and screenshot functionality for iOS devices
}

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