swan-io / react-native-browser

An easy-to-use in-app browser module for React Native, powered by Chrome Custom Tabs / SFSafariViewController.
MIT License
135 stars 11 forks source link

Disable close window by swiping down #14

Closed koszli closed 3 months ago

koszli commented 3 months ago

Why it is needed?

When my app opens some page that need to switch to another app (for example: payment page that needs code from bank app) users accidentally are swiping down and closing website opened in browser. I would like to allow closing browser screen only by taping done/close/etc.

Possible implementation

No response

Code sample

No response

zoontek commented 3 months ago

Can't be done with the default modal presentation. Use the second one (with animationType: fade)