Skip to content

hushicai/ReactNativeAndroidWebView

Repository files navigation

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.

About

React Native Android WebView Example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published