Skip to content

Commit 27217e8

Browse files
cipolleschifacebook-github-bot
authored andcommitted
Initialize props for RCTPullToRefreshViewComponentView (#53231)
Summary: Pull Request resolved: #53231 The RCTPullToRefreshViewComponentView props are not initialized when the component view is created. this could lead to undefined behaviors and crashes. This change fixes it. ## Changelog: [iOS][Fixed] - Properly initialize the RCTPullToRefreshViewComponentView Reviewed By: sammy-SC Differential Revision: D80093141 fbshipit-source-id: dac98d56c749b9f5d85338279c8da2a7e5ddb4a3
1 parent 7e46100 commit 27217e8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/react-native/React/Fabric/Mounting/ComponentViews/ScrollView/RCTPullToRefreshViewComponentView.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ - (instancetype)initWithFrame:(CGRect)frame
4040
// attaching and detaching of a pull-to-refresh view to a scroll view.
4141
// The pull-to-refresh view is not a subview of this view.
4242
self.hidden = YES;
43+
_props = PullToRefreshViewShadowNode::defaultSharedProps();
4344
_recycled = NO;
4445
[self _initializeUIRefreshControl];
4546
}

0 commit comments

Comments
 (0)