New Architecture
The library has been updated with New Architecture support. Full support available from version 2.0.0.
Latest Version (v2.0.0)
- npm
- yarn
- pnpm
npm install react-native-screenguard@2.0.0
yarn add react-native-screenguard@2.0.0
pnpm add react-native-screenguard@2.0.0
What's New in v2.0.0
- separate screenshot and screen recording through
initSettings() - New
initSettings()API - Required initialization before using any other API - React Hooks -
useSGScreenShotanduseSGScreenRecordreplace manual event listeners - New
getScreenGuardLogs()API - Retrieve activity logs for debugging - Fixed Android keyboard issue - Text input no longer disabled when screenguard is active
- Improved settings - New options for fine-grained control over overlay display
- Removed deprecated APIs -
registerScreenshotEventListener,registerScreenRecordingEventListener,removeScreenshotEventListener,removeRecordingEventListener
Previous Versions
1.1.0 (2025-07-09)
- fix #101 and #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.
1.0.9 (2025-05-24)
- Hot fix Android old arch build failed and library not recognizable when running
npx react-native config.
1.0.8 (2025-05-22)
- Final release for v1.x.
1.0.8-beta7 (2025-05-21)
- Android: Remove checking activity declaration inside AndroidManifest.xml as not necessary
- Added missing iOS remove screenshot + screen record for old arch
1.0.8-beta6 (2025-05-11)
- Android: Added checking activity declaration inside AndroidManifest.xml, throw error if not defined.
- fix #92
1.0.8-beta5 (2025-04-22)
- Refactor API to Promise.
- Fix build failed due to duplicate import
registerScreenRecordingStatus: addedscreenRecordStatusboolean. for checking if screen is start recording or stop recording.- Fix
deactivateShieldcrashed app
1.0.8-beta4 (2025-04-11)
registerScreenshotEventListener: Fix iOS + android duplicate calls #87.
1.0.8-beta3 (2025-04-06)
- Code refactor
1.0.8-beta2 (2025-04-05)
- Code refactor
1.0.8-beta1 (2025-04-03)
- Init build
For updates and bug fixing, please visit here for more infos.