Skip to content

Latest commit

 

History

History
18 lines (9 loc) · 1.09 KB

README.md

File metadata and controls

18 lines (9 loc) · 1.09 KB

ReactNativeAndroidWebView

Android webview does not support file upload、file download and web contents debugging by default, I make this project to show solution for this problem.

React Native v0.50.0-

For RN v0.50.0-, RN do not allow us to extend built-in components.

So CustomWebView have to copy the code from react-native/Libraries/Components/WebView/WebView.android.js.

React Native v0.50.0 and v0.50.0+

For RN v0.50.0 and v0.50.0+, RN allow us to "Add props for overriding native component in WebView".

So we can use the new feature to implement our CustomWebView.

As we can see, the new implemention is brief.