New Architecture
Thư viện đã được cập nhật để hỗ trợ New Architecture. Hỗ trợ đầy đủ có sẵn từ phiên bản 1.8.0.
Phiên bản Beta (v2.0.0 - beta5)
- npm
- yarn
- pnpm
npm install react-native-screenguard@2.0.0-beta5
yarn add react-native-screenguard@2.0.0-beta5
pnpm add react-native-screenguard@2.0.0-beta5
- Phát hành lại do thiếu hỗ trợ RN 0.67 và 0.59 trở xuống.
Phiên bản mới nhất (v2.0.1 - stable)
- npm
- yarn
- pnpm
npm install react-native-screenguard@2.0.1
yarn add react-native-screenguard@2.0.1
pnpm add react-native-screenguard@2.0.1
Bản phát hành này tiếp tục hỗ trợ v2.0.0 cùng với một số cải tiến.
- Sửa lỗi
limitCaptureEvtCounttrên Android không kích hoạt đúng cách. - Xóa mã không sử dụng trên Android.
- Sửa lỗi
ClassCastExceptiontrên React-native 0.82+ ở Android #125.
v2.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.