mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix reatain cycle RCTPullToRefreshViewComponentView <-> RCTScrollViewComponentView
Summary: Changelog: [iOS][Fixed] - `_scrollViewComponentView` is set to `RCTPullToRefreshViewComponentView's` superview: ``` _scrollViewComponentView = [RCTScrollViewComponentView findScrollViewComponentViewForView:self]; ``` It should be safe to make it weak. Reviewed By: javache Differential Revision: D36998626 fbshipit-source-id: 2130b743d181e15986cb68636d60507a986968e1
This commit is contained in:
committed by
Facebook GitHub Bot
parent
68e4e91bd4
commit
4e4b9e2111
+1
-1
@@ -25,7 +25,7 @@ using namespace facebook::react;
|
||||
|
||||
@implementation RCTPullToRefreshViewComponentView {
|
||||
UIRefreshControl *_refreshControl;
|
||||
RCTScrollViewComponentView *_scrollViewComponentView;
|
||||
RCTScrollViewComponentView *__weak _scrollViewComponentView;
|
||||
}
|
||||
|
||||
- (instancetype)initWithFrame:(CGRect)frame
|
||||
|
||||
Reference in New Issue
Block a user