Releases: gbumps/react-native-screenguard
v2.0.0
Thanks for using React native screenguard, here are some new changes and features:
✨ Feature
- New hooks: useSGScreenShot and useSGScreenRecord for functional components
- New initSettings() configuration for easier control.
- New getScreenGuardLogs() for debugging and tracing event.
- separate between capture and recording through initSetting #46.
🌈 Improvement
- Android: New ScreenGuardOverlay class in replaced of ScreenGuardColorActivity
- iOS: Improved event emitter with proper listener methods
- Added comprehensive Jest test suite
- Added listener when RN bundle reload.
- Added listener orientation changed.
- Added listener screen recording on Android 15+
- Added Expo support.
𝌡 Change
- BREAKING: Must call initSettings() before any register functions
- BREAKING: Removed registerScreenshotEventListener & registerScreenRecordingEventListener
- BREAKING: timeAfterResume moved from register functions to initSettings()
🐛 Bugfix
v1.1.1
v1.1.0
v1.0.9
Thanks for using react-native-screenguard. Here are new changes and improvement
✨ Feature
- New Architecture supported.
🌈 Improvement
-
Android: declaration ofcom.screenguard.ScreenGuardColorActivityis no longer required as this activity has been already declared inside Manifest of the library. -
registerScreenRecordEventListener: AddedrecordingStatusfor checking if user is performing a screen recording or not.
𝌡 Change
-
Refactor all functions to Promise except
registerScreenshotEventListenerandregisterScreenRecordEventListener. -
unregister: From now on,unregisterwill not remove screenshot EventListener and screenRecord EventListener. You must do it by usingremoveScreenshotEventListenerandremoveRecordingEventListener.
🐛 Bugfix
v1.0.6 - stable
🐛 Bugfix
- Android: fix
unregisternot working on Android 12+ due to remove SECURE_FLAG on wrong targeted Activity. PR: #84
v1.0.4
v1.0.2
𝌡 Change
JS/TS:
- Expose
ScreenGuardConstantfor easier reusing.
🌈 Improvement
registerWithImage: Improve image position.
🐛 Bugfix
registerWithImage: fix crash whendefaultSource= null on iOS thanks to @RikSchefferAmsterdam.registerWithImage: fixalignmentnot working at #67 thanks to @RikSchefferAmsterdam.- fix crash on Android 14 thanks to @bdtren
web-doc-v0.0.1
✨ Feature
Built and launched a webpage document based on the current README.md file due to issue #61. From now on, all future updates, release announcements, and function definitions will be available here for easier navigation and reading.
On GitHub, the Releases and README.md page will only contain a brief summary of any change log or update of the library.
https://gbumps.github.io/react-native-screenguard
v1.0.0
Thanks for using react-native-screenguard. Today I announce big update for this library.
✨ Feature
- Added
registerWithoutEffect: screenshot and screen recording prevention for Android without effect (blur, image, color). (Android only).
🌈 Improvement
Android: ImproveScreenGuardColorActivity.javaand registration ofWindowManager.FLAG_SECUREtwice on some functions.
𝌡 Change
-
Move and refactor all JS code to
srcfolder. -
Merged
stableandbetaversion into one for resolving frequent code mismatch and build failed #32 #57. -
registerWithoutScreenguard: this has been deprecated and removed. -
registerWithImage: Added support positiontop,left,bottom,rightfor image position customization. (iOS only) -
register: changed input toScreenGuardColorDataobject instead of onlybackgroundColor. -
registerScreenshotEventListener: Added screenshot image info at callback, after a screenshot is triggered successfully (Republished due to build failed on some version0.3.8,0.3.9,0.4.0).
v1.0.8-beta7
𝌡 Change
- New architecture React Native supported (iOS, Android)
- Bug fixing.
Install
npm i react-native-screenguard@1.0.8-beta7
or
yarn add react-native-screenguard@1.0.8-beta7
More infos at this PR here #85
Builds
2025-05-10
Release 1.0.8-beta7
- Android: Remove checking activity declaration inside AndroidManifest.xml as not necessary
- Added missing iOS remove screenshot + screen record for old arch
Release 1.0.8-beta6
- Android: Added checking activity declaration inside AndroidManifest.xml, throw error if not defined.
- fix #92
2025-04-22
Release 1.0.8-beta5
- Refactor API to Promise.
- Fix build failed due to duplicate import
- `registerScreenRecordingStatus`: added `screenRecordStatus` boolean. for checking if screen is start recording or stop recording.
- Fix `deactivateShield` crashed app
2025-04-11
Release 1.0.8-beta4
- `registerScreenshotEventListener`: Fix iOS + android duplicate calls #87.
2025-04-06
Release 1.0.8-beta3
- Code refactor
2025-04-05
Release 1.0.8-beta2
- Code refactor
2025-04-03
Release 1.0.8-beta1
- Code refactor