Fix refresh control redbox

Summary: Changelog:[Internal]

Reviewed By: Vince0613

Differential Revision: D22989945

fbshipit-source-id: 735da1cf103b2465663ecb6abfd49e512aff9a1e
This commit is contained in:
Peter Argany
2020-08-06 17:31:47 -07:00
committed by Facebook GitHub Bot
parent 7e5cf51117
commit fcb667059d
+3 -1
View File
@@ -233,7 +233,9 @@
// We have to set this because we can't always guarantee the
// `RCTCustomRefreshContolProtocol`'s superview will always be of class
// `UIScrollView` like we were previously
_customRefreshControl.scrollView = self;
if ([_customRefreshControl respondsToSelector:@selector(setScrollView:)]) {
_customRefreshControl.scrollView = self;
}
if ([refreshControl isKindOfClass:UIRefreshControl.class]) {
self.refreshControl = (UIRefreshControl *)refreshControl;
} else {