Skip to content

Releases: gbumps/react-native-screenguard

v1.1.0

09 Jul 16:45
9fc7dcc

Choose a tag to compare

🐛 Bugfix

  • fix #101 #100 due to color parsing failed + enhance reading hex string with 3 characters (for example #fff)
  • fix #102 due to possibly webp not supported.
  • fix #103 due to BasedReactPackage not yet implemented on RN 0.73.

v1.0.9

22 May 18:06
38238ff

Choose a tag to compare

Thanks for using react-native-screenguard. Here are new changes and improvement

✨ Feature

  • New Architecture supported.

🌈 Improvement

  • Android: declaration of com.screenguard.ScreenGuardColorActivity is no longer required as this activity has been already declared inside Manifest of the library.

  • registerScreenRecordEventListener: Added recordingStatus for checking if user is performing a screen recording or not.

𝌡 Change

  • Refactor all functions to Promise except registerScreenshotEventListener and registerScreenRecordEventListener.

  • unregister : From now on, unregister will not remove screenshot EventListener and screenRecord EventListener. You must do it by using removeScreenshotEventListener and removeRecordingEventListener.

🐛 Bugfix

v1.0.6 - stable

27 Feb 08:33
ce1d8ea

Choose a tag to compare

🐛 Bugfix

  • Android: fix unregister not working on Android 12+ due to remove SECURE_FLAG on wrong targeted Activity. PR: #84

v1.0.4

19 Nov 16:48

Choose a tag to compare

🐛 Bugfix

  • register: fix crash when hex color failed parsing on iOS PR #77 thanks to @dziter
  • fix #72
  • fix ScreenGuardColorActivity cannot be closed due to strict limitation of Broadcast Receiver on Android 13+.

v1.0.2

16 Jul 03:38

Choose a tag to compare

𝌡 Change

JS/TS:

  • Expose ScreenGuardConstant for easier reusing.

🌈 Improvement

  • registerWithImage: Improve image position.

🐛 Bugfix

web-doc-v0.0.1

06 Jun 17:43
7c610b1

Choose a tag to compare

✨ 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

04 May 09:04

Choose a tag to compare

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: Improve ScreenGuardColorActivity.java and registration of WindowManager.FLAG_SECURE twice on some functions.

𝌡 Change

  • Move and refactor all JS code to src folder.

  • Merged stable and beta version into one for resolving frequent code mismatch and build failed #32 #57.

  • registerWithoutScreenguard: this has been deprecated and removed.

  • registerWithImage: Added support position top, left, bottom, right for image position customization. (iOS only)

  • register: changed input to ScreenGuardColorData object instead of only backgroundColor.

  • registerScreenshotEventListener: Added screenshot image info at callback, after a screenshot is triggered successfully (Republished due to build failed on some version 0.3.8, 0.3.9, 0.4.0).

v1.0.8-beta7

03 Apr 17:48

Choose a tag to compare

𝌡 Change

  • New architecture React Native supported (iOS, Android)
  • Bug fixing.

Install

or

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

v0.3.6 -stable

28 Jan 15:50

Choose a tag to compare

✨ Feature

  • Added registerScreenshotEventListener: screenshot event listener for iOS + Android.

  • Added registerScreenRecordingEventListener: screen recording event listener (iOS only).

𝌡 Change

Due to new feature release, here are some changes as following:

  • registerWithoutScreenguard: This function is now deprecated and will be removed from v0.4.0+ Consider using registerScreenshotEventListener and registerScreenRecordingEventListener instead.

  • Callback: As I mentioned at previous version, callback after a screenshot or screen recording are registered when calling any function, but now you have to call and register it manually based on the new feature above.

v0.3.5

10 Jan 17:15

Choose a tag to compare

🌈 Improvement

  • Android: Improve frequent crash when app in background on Android due to #29.

🐛 Bugfix

  • fix warning NativeEventEmitter appeared several times on Android at issue #36 thanks to @alexbennycodes.