Change DomStorageEnabled default value to true
Summary: Many websites use domstorage and never think of its unavailability, which usually leads to a blank page on android and hard for developers to debug. I think it's better to enable domstorage by default, for convenience and consistency to iOS and PC. Closes https://github.com/facebook/react-native/pull/11333 Differential Revision: D4437165 Pulled By: hramos fbshipit-source-id: a00441cb5214cca27927471d3a33f030b9ff9b52
This commit is contained in:
parent
b850af7a39
commit
829019400a
|
@ -340,6 +340,7 @@ public class ReactWebViewManager extends SimpleViewManager<WebView> {
|
|||
mWebViewConfig.configWebView(webView);
|
||||
webView.getSettings().setBuiltInZoomControls(true);
|
||||
webView.getSettings().setDisplayZoomControls(false);
|
||||
webView.getSettings().setDomStorageEnabled(true);
|
||||
|
||||
// Fixes broken full-screen modals/galleries due to body height being 0.
|
||||
webView.setLayoutParams(
|
||||
|
|
Loading…
Reference in New Issue