From a5d1572c88ca9dfa440dd79e791bdc7d6a06013a Mon Sep 17 00:00:00 2001 From: "John C. Bland II" Date: Thu, 7 Jun 2018 23:02:01 -0500 Subject: [PATCH] iOS: WebView stays in loading state See https://github.com/facebook/react-native/issues/5974. --- Libraries/Components/WebView/WebView.ios.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Components/WebView/WebView.ios.js b/Libraries/Components/WebView/WebView.ios.js index 8d78103d70134d..73c59d6223d01f 100644 --- a/Libraries/Components/WebView/WebView.ios.js +++ b/Libraries/Components/WebView/WebView.ios.js @@ -678,7 +678,7 @@ const styles = StyleSheet.create({ marginBottom: 10, }, hidden: { - height: 0, + height: 1, // UIWebView does not finish loading when 100% hidden; see https://github.com/facebook/react-native/issues/5974 flex: 0, // disable 'flex:1' when hiding a View }, loadingView: {