diff --git a/ReactCommon/fabric/attributedstring/conversions.h b/ReactCommon/fabric/attributedstring/conversions.h index 76a6823e7fc..0a029a6b67b 100644 --- a/ReactCommon/fabric/attributedstring/conversions.h +++ b/ReactCommon/fabric/attributedstring/conversions.h @@ -198,7 +198,7 @@ inline std::string toString(const FontVariant &fontVariant) { inline void fromRawValue(const RawValue &value, TextAlignment &result) { auto string = (std::string)value; - if (string == "natural") { + if (string == "auto") { result = TextAlignment::Natural; return; } @@ -214,7 +214,7 @@ inline void fromRawValue(const RawValue &value, TextAlignment &result) { result = TextAlignment::Right; return; } - if (string == "justified") { + if (string == "justify") { result = TextAlignment::Justified; return; } @@ -276,13 +276,13 @@ inline void fromRawValue( result = TextDecorationLineType::Underline; return; } - + // TODO: remove "line-through" after deprecation if (string == "strikethrough" || string == "line-through") { result = TextDecorationLineType::Strikethrough; return; } - + // TODO: remove "underline line-through" after "line-through" deprecation if (string == "underline-strikethrough" || string == "underline line-through") { result = TextDecorationLineType::UnderlineStrikethrough;