mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix refresh control redbox
Summary: Changelog:[Internal] Reviewed By: Vince0613 Differential Revision: D22989945 fbshipit-source-id: 735da1cf103b2465663ecb6abfd49e512aff9a1e
This commit is contained in:
committed by
Facebook GitHub Bot
parent
7e5cf51117
commit
fcb667059d
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user