mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix unrecognized selector for iOS 9
Summary: Refresh control is only available in iOS 10+ > https://developer.apple.com/documentation/uikit/uiscrollview/2127691-refreshcontrol?language=objc changelog: Fix crash in RCTPullToRefreshViewComponentView on iOS 10 Reviewed By: sammy-SC Differential Revision: D18201528 fbshipit-source-id: 0dd3dad7cabe08589a597039c1dae44da868e1e5
This commit is contained in:
committed by
Facebook Github Bot
parent
2c7a907b08
commit
35b8b06db9
+3
-1
@@ -139,7 +139,9 @@ using namespace facebook::react;
|
||||
// iOS requires to end refreshing before unmounting.
|
||||
[_refreshControl endRefreshing];
|
||||
|
||||
_scrollViewComponentView.scrollView.refreshControl = nil;
|
||||
if (@available(iOS 10.0, macOS 13.0, *)) {
|
||||
_scrollViewComponentView.scrollView.refreshControl = nil;
|
||||
}
|
||||
_scrollViewComponentView = nil;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user