gbumps / react-native-screenguard

A Native screenshot blocking library for React-Native developer, with background customizable after captured. Screenshot detector are also supported.
https://gbumps.github.io/react-native-screenguard/
MIT License
231 stars 28 forks source link

[iOS] App crash after open webview and taking screenshot #41

Closed mthinh closed 10 months ago

mthinh commented 10 months ago

Hi @gbumps , I face this error if you have any idea on this ? Thank you

Device: Simulator iPhone 15 pro iOS 17.0.1 react-native-screenguard: 0.3.2

Step to reproduce:

gbumps commented 10 months ago

I guess that you're using react-native-webview to display an in-app webview. Does it happened on real device ?

It's better to reproduce it with a recording screen instead so I can clearly understand what's happening.

gbumps commented 10 months ago

While I'm finding a way to fix, here's the work around for you: Try to open the in-app Webview inside a Modal.

gbumps commented 10 months ago

While I'm finding a way to fix, here's the work around for you: Try to open the in-app Webview inside a Modal.

hello @mthinh, Does this solved your problem yet ? If not, just reopen the issue.

Thanks!