mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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
This commit is contained in:
committed by
Facebook Github Bot
parent
11dc847ec9
commit
219e1972d6
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user