mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user