From 4a0243fcd3ad2b90ccf81ae15666f6323a3b264a Mon Sep 17 00:00:00 2001 From: Kevin Gozali Date: Tue, 15 May 2018 09:25:40 -0700 Subject: [PATCH] iOS: whitelist a few components for testing purpose Reviewed By: mmmulani Differential Revision: D7999459 fbshipit-source-id: e56946931997cb51ee66020a97c60f3c85d1d348 --- ReactCommon/fabric/uimanager/FabricUIManager.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ReactCommon/fabric/uimanager/FabricUIManager.cpp b/ReactCommon/fabric/uimanager/FabricUIManager.cpp index b9a5cd57f..4c6c1efe2 100644 --- a/ReactCommon/fabric/uimanager/FabricUIManager.cpp +++ b/ReactCommon/fabric/uimanager/FabricUIManager.cpp @@ -66,6 +66,14 @@ static const std::string componentNameByReactViewName(std::string viewName) { return "View"; } + // Other temporary fallback until the native components are implemented. + if ( + viewName == "ActivityIndicatorView" || + viewName == "ShimmeringView" + ) { + return "View"; + } + return viewName; }