Fix parsing of flex-wrap='nowrap'

Summary: This diff fixes parsing of  flex-wrap='nowrap' prop in Fabric

Reviewed By: fkgozali

Differential Revision: D14554656

fbshipit-source-id: 259b2cdaf2043f72c261ae7d74a80eb012883244
This commit is contained in:
David Vacca
2019-03-23 12:09:59 -07:00
committed by Facebook Github Bot
parent bd7df8bdaa
commit f01a0d33ab
@@ -253,7 +253,7 @@ inline void fromRawValue(const RawValue &value, YGPositionType &result) {
inline void fromRawValue(const RawValue &value, YGWrap &result) {
assert(value.hasType<std::string>());
auto stringValue = (std::string)value;
if (stringValue == "no-wrap") {
if (stringValue == "nowrap") {
result = YGWrapNoWrap;
return;
}