Web Analytics
Skip to main content

registerWithoutEffect

(Android only) Activate screenguard without any effect above for Android only.

Usage


import ScreenGuardModule from 'react-native-screenguard';

ScreenGuardModule.registerWithoutEffect()

New architecture (v1.0.8+)

  • Starting from v1.0.8+, except registerScreenshotEventListener and registerScreenRecordingEventListener, all APIs have been upgraded to Promise. So you must use it asynchronously in your project.
ScreenGuardModule.registerWithoutEffect().then((_) => {console.log()})

or

await ScreenGuardModule.registerWithoutEffect();