Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

prevent react-native-webview from opening external apps on its own

I am using react-native-webview for my project. However, when I open the website of the e-commerce site, it opens the application of that site by itself.
How can I block it?

I want my application not to open another application.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

react-native-webview already provided the solution.

you can try this way.

<WebView
   originWhitelist={['*']}
   setSupportMultipleWindows={false}
/>
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading