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
This commit is contained in:
David Vacca 2018-11-08 16:55:11 -08:00 committed by Facebook Github Bot
parent 8329c10932
commit cd5009f713
1 changed files with 2 additions and 1 deletions

View File

@ -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";