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:
sunnylqm 2017-01-19 12:26:01 -08:00 committed by Facebook Github Bot
parent b850af7a39
commit 829019400a
1 changed files with 1 additions and 0 deletions

View File

@ -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(