mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Fix PullToRefresh props casting (#49815)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/49815 The pull to refresh component props's casting is imprecise. This change uses the more precise type for the props. ## Changelog: [Internal] - cast props to `PullToRefreshViewProps` Reviewed By: sammy-SC Differential Revision: D70559080 fbshipit-source-id: c42d3d41a22683a3392813c2af25828781a68401
This commit is contained in:
1 parent
ed7dbce799
commit
fc264400ec
1 file changed
+1
-1
+1
-1
@@ -72,7 +72,7 @@ using namespace facebook::react;
|
||||
{
|
||||
// Prop updates are ignored by _refreshControl until after the initial layout, so just store them in _props until then
|
||||
if (_isBeforeInitialLayout) {
|
||||
_props = std::static_pointer_cast<const BaseViewProps>(props);
|
||||
_props = std::static_pointer_cast<const PullToRefreshViewProps>(props);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user