unregister
Deactivate all the screenshot protection.
v2.0.0+ Requirement
You must call initSettings() before using this function.
Example code
import ScreenGuardModule from 'react-native-screenguard';
await ScreenGuardModule.unregister();
v2.0.0 Changes
In v2.0.0+, you no longer need to manually remove event listeners:
useSGScreenShothook automatically cleans up on component unmountuseSGScreenRecordhook automatically cleans up on component unmount
The old removeScreenshotEventListener() and removeRecordingEventListener() functions have been removed.