Skip to content

Commit 4e4b9e2

Browse files
Dmitry Rykunfacebook-github-bot
authored andcommitted
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
1 parent 68e4e91 commit 4e4b9e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

React/Fabric/Mounting/ComponentViews/ScrollView/RCTPullToRefreshViewComponentView.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ @interface RCTPullToRefreshViewComponentView () <RCTPullToRefreshViewViewProtoco
2525

2626
@implementation RCTPullToRefreshViewComponentView {
2727
UIRefreshControl *_refreshControl;
28-
RCTScrollViewComponentView *_scrollViewComponentView;
28+
RCTScrollViewComponentView *__weak _scrollViewComponentView;
2929
}
3030

3131
- (instancetype)initWithFrame:(CGRect)frame

0 commit comments

Comments
 (0)