You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How are we able to enable the screenshot prevention in specific screen?
For now if it's enabled in a screen, it will be enabled everywhere unless if i disableSecureView on screen unfocus, and if i do that, the app starts taking around 1gb ram after focusing/unfocusing the screen for like 10 times, solution?
How are we able to enable the screenshot prevention in specific screen?
For now if it's enabled in a screen, it will be enabled everywhere unless if i disableSecureView on screen unfocus, and if i do that, the app starts taking around 1gb ram after focusing/unfocusing the screen for like 10 times, solution?
useEffect(() => {
if(!DEV){
if (isFocused) {
RNScreenshotPrevent.enabled(true);
isIOS &&
RNScreenshotPrevent.enableSecureView(Image.resolveAssetSource(screenshotPreventImage).uri);
} else {
RNScreenshotPrevent.disableSecureView();
RNScreenshotPrevent.enabled(false);
}
}
return () => {
RNScreenshotPrevent.disableSecureView();
RNScreenshotPrevent.enabled(false);
};
}, [isFocused]);
The text was updated successfully, but these errors were encountered: