make <Image> fallback to <View> temporarily

Summary: <Image> support isn't there, so fallback to <View> instead of crashing.

Reviewed By: shergin

Differential Revision: D8086403

fbshipit-source-id: 16d7fd8023f93cbe25f2bc0f7d0a03e32cd402ce
This commit is contained in:
Kevin Gozali 2018-05-22 01:19:37 -07:00 committed by Facebook Github Bot
parent 54489b91ab
commit 55724bcc62
1 changed files with 2 additions and 1 deletions

View File

@ -61,8 +61,9 @@ static const std::string componentNameByReactViewName(std::string viewName) {
} }
// We need this temporarly for testing purposes until we have proper // We need this temporarly for testing purposes until we have proper
// implementation of <ScrollView> component. // implementation of core components: <Image>, <ScrollContentView>.
if ( if (
viewName == "ImageView" ||
viewName == "ScrollContentView" viewName == "ScrollContentView"
) { ) {
return "View"; return "View";