From 28278e1b064e723d603fd8fce30de4ad244fdb05 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Fri, 9 Nov 2018 10:36:29 -0800 Subject: [PATCH] Fix Shimmer in Fabric Android Summary: ShimmeringView is called: RTShimmeringView Android and ShimmeringView in iOS. This diff adds a mapping into ComponentDescriptorRegistry to temporary enable ShimmeringView component until we can unify names in JS. Reviewed By: sahrens Differential Revision: D12991351 fbshipit-source-id: 48e08b8021116221ccfd5f2512c76f65145baa2a --- 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 e7b0c926870f35..3ea1e2ddd968e2 100644 --- a/ReactCommon/fabric/uimanager/ComponentDescriptorRegistry.cpp +++ b/ReactCommon/fabric/uimanager/ComponentDescriptorRegistry.cpp @@ -64,6 +64,10 @@ static const std::string componentNameByReactViewName(std::string viewName) { return "ScrollView"; } + if (viewName == "RKShimmeringView") { + return "ShimmeringView"; + } + if (viewName == "AndroidProgressBar") { return "ActivityIndicatorView"; }