From cd5009f7132763156e006e3149585a5135e2ab5b Mon Sep 17 00:00:00 2001 From: David Vacca Date: Thu, 8 Nov 2018 16:55:11 -0800 Subject: [PATCH] Temporary disable AndroidSwipeRefreshLayout Summary: AndroidSwipeRefreshLayout is rendered in the "Marketplace Your Items" screen altough it is disabled. This diff just temporary implements the AndroidSwipeRefreshLayout component as a View (similar to the iOS counterpart RefreshControl). Reviewed By: shergin Differential Revision: D10524049 fbshipit-source-id: 5df38fbdf1339b3857138d82a7100ec7f15854b3 --- ReactCommon/fabric/uimanager/ComponentDescriptorRegistry.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ReactCommon/fabric/uimanager/ComponentDescriptorRegistry.cpp b/ReactCommon/fabric/uimanager/ComponentDescriptorRegistry.cpp index 8cd94d149..e7b0c9268 100644 --- a/ReactCommon/fabric/uimanager/ComponentDescriptorRegistry.cpp +++ b/ReactCommon/fabric/uimanager/ComponentDescriptorRegistry.cpp @@ -72,7 +72,8 @@ static const std::string componentNameByReactViewName(std::string viewName) { // implementation of core components. if (viewName == "SinglelineTextInputView" || viewName == "MultilineTextInputView" || viewName == "RefreshControl" || - viewName == "SafeAreaView" || viewName == "ScrollContentView" || + viewName == "AndroidSwipeRefreshLayout" || viewName == "SafeAreaView" || + viewName == "ScrollContentView" || viewName == "AndroidHorizontalScrollContentView" // Android ) { return "View";