Description : When app is minimized either it will disable screen capture or it will show white screen that hide's app content.
Steps to reproduce with react-native-screenshot-prevent libray in react native
-
Install library with - npm i react-native-screenshot-prevent
-
Implement with below methods in App.tsx i.e root level of app.
RNScreenshotPrevent.enabled(true);
RNScreenshotPrevent.enableSecureView();
useEffect(() => {
const subscription = addListener(() => { })
return () => {
subscription.remove();
}
}, [])
- Click on menu button. Just for example added chrome screenshot below. Similarly shows app content's when my app is in minimised mode.
- Expected result - It should show white screen instead of app content or it should disable screenshot capture. Also when app is in foreground mode still able to capture screenshot on emulator.
Description : When app is minimized either it will disable screen capture or it will show white screen that hide's app content.
Steps to reproduce with react-native-screenshot-prevent libray in react native
Install library with - npm i react-native-screenshot-prevent
Implement with below methods in App.tsx i.e root level of app.