From 219e1972d6f4ceeac4ffc41f8facc4205da78546 Mon Sep 17 00:00:00 2001 From: Joshua Gross Date: Tue, 20 Aug 2019 22:26:57 -0700 Subject: [PATCH] Remove hack in C++ that prevents any real TextInputs from being rendered Summary: There's an old hack in the C++ code that prevents TextInputs from being rendered by forcing them to render as Views instead. We don't need this anymore. Reviewed By: shergin Differential Revision: D16932795 fbshipit-source-id: 347df106f638c2bf936e2312f42bcb9310d72c6d --- ReactCommon/fabric/uimanager/ComponentDescriptorRegistry.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ReactCommon/fabric/uimanager/ComponentDescriptorRegistry.cpp b/ReactCommon/fabric/uimanager/ComponentDescriptorRegistry.cpp index fbb8420b7a8..63e23428619 100644 --- a/ReactCommon/fabric/uimanager/ComponentDescriptorRegistry.cpp +++ b/ReactCommon/fabric/uimanager/ComponentDescriptorRegistry.cpp @@ -103,9 +103,7 @@ static std::string componentNameByReactViewName(std::string viewName) { // We need this temporarily for testing purposes until we have proper // implementation of core components. - if (viewName == "SinglelineTextInputView" || - viewName == "MultilineTextInputView" || viewName == "AndroidTextInput" || - viewName == "SafeAreaView" || viewName == "ScrollContentView" || + if (viewName == "SafeAreaView" || viewName == "ScrollContentView" || viewName == "AndroidHorizontalScrollContentView" // Android ) { return "View";