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:
parent
54489b91ab
commit
55724bcc62
|
@ -61,8 +61,9 @@ static const std::string componentNameByReactViewName(std::string viewName) {
|
|||
}
|
||||
|
||||
// We need this temporarly for testing purposes until we have proper
|
||||
// implementation of <ScrollView> component.
|
||||
// implementation of core components: <Image>, <ScrollContentView>.
|
||||
if (
|
||||
viewName == "ImageView" ||
|
||||
viewName == "ScrollContentView"
|
||||
) {
|
||||
return "View";
|
||||
|
|
Loading…
Reference in New Issue