From 1c7db707376bb6892a9106c57e79d0350f03c04d Mon Sep 17 00:00:00 2001 From: Pranav Raja Date: Thu, 19 Jan 2017 12:57:03 +1100 Subject: [PATCH] RCTView: Fix list views sometimes being empty See https://github.com/facebook/react-native/issues/1831#issuecomment-270552011 --- React/Views/RCTView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/React/Views/RCTView.m b/React/Views/RCTView.m index 41d780c3086d8f..86139ef8b97a99 100644 --- a/React/Views/RCTView.m +++ b/React/Views/RCTView.m @@ -61,7 +61,7 @@ - (UIView *)react_findClipView if (testView.clipsToBounds) { if (clipView) { CGRect testRect = [clipView convertRect:clipRect toView:testView]; - if (!CGRectContainsRect(testView.bounds, testRect)) { + if (!CGRectContainsRect(testView.bounds, testRect) && !CGRectIsEmpty(CGRectIntersection(testView.bounds, testRect))) { clipView = testView; clipRect = CGRectIntersection(testView.bounds, testRect); }