killserver / react-native-screenshot-prevent

MIT License
85 stars 32 forks source link

Prevent screen record not working for Modal #8

Open huynextlevel opened 1 year ago

huynextlevel commented 1 year ago

Hi @killserver ,

I use react-native-screenshot-prevent to prevent the screen record, it's working fine for react-navigation. But when I open Modal (I used react-native-modal library), it can't prevent the Modal view in the screen record. Can you help me check this issue again?

KarinaOleynik commented 1 year ago

Have the same problem... And also, is it possible to prevent the screenshot and the screen record for InAppBrowser modal?

killserver commented 1 year ago

hello all. please tell me on which device(android/ios) not work prevents? thx

KarinaOleynik commented 1 year ago

@killserver on both platform

sanduluca commented 1 year ago

Same problem on Android and IOS. Tested on Pixel 4a and iPhone XR

Edit1: setting coverScreen={false} prop to Modal fixes the problem, but the modal does not cover all the screen unfortunately

Edit2: I guess the fastest solution will be to use other modal library that is implemented on JS only (no native view)

medonja commented 1 year ago

Any chance this getting fixed? It happens with react-native-modal and setting coverScreen={true}

killserver commented 9 months ago

Any chance this getting fixed? It happens with react-native-modal and setting coverScreen={true}

react-native-modal and the react-native modal component are not part of the application... they both create a separate-independent view. you just need to patch the native components to be able to get to them (( maybe exists idea in community how fix this bug?

chathurasakun commented 3 months ago

same here as well. using react native inbuilt Modal component. Not working screen shot blocking with the app. Any idea?