From 9e4266e9d0ca7ae1dc2da26513d2956b68ad28cf Mon Sep 17 00:00:00 2001 From: Samuel Susla Date: Mon, 30 Sep 2019 12:38:02 -0700 Subject: [PATCH] Fix RCTRefreshControl component name in Fabric Summary: Map `RCTRefreshControl` to `PullToRefreshView` when retrieving component descriptor from registry. Reviewed By: shergin Differential Revision: D17665287 fbshipit-source-id: 7dc038e8cd8e8078714daa8163327abd8e95b886 --- ReactCommon/fabric/uimanager/ComponentDescriptorRegistry.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ReactCommon/fabric/uimanager/ComponentDescriptorRegistry.cpp b/ReactCommon/fabric/uimanager/ComponentDescriptorRegistry.cpp index c773c6f37a2..b30d3fee014 100644 --- a/ReactCommon/fabric/uimanager/ComponentDescriptorRegistry.cpp +++ b/ReactCommon/fabric/uimanager/ComponentDescriptorRegistry.cpp @@ -101,6 +101,10 @@ static std::string componentNameByReactViewName(std::string viewName) { return "ShimmeringView"; } + if (viewName == "RefreshControl") { + return "PullToRefreshView"; + } + if (viewName == "AndroidProgressBar") { return "ActivityIndicatorView"; }