Fix textDecorationLine property
Summary: This diff fixes a style property that was incorrectly mapped as `textDecorationLineType` in Fabric This was correctly mapped in classic here: diffusion/FBS/browse/master/xplat/js/react-native-github/Libraries/Text/BaseText/RCTBaseTextViewManager.m;10b92f1847cdec8a3f0a996f218989766516f805$48 Reviewed By: mdvacca Differential Revision: D13443921 fbshipit-source-id: 7fafaf2492d8c3b938f2e433a983303958e5c578
This commit is contained in:
parent
d0485b2f04
commit
e7cf870e31
|
@ -438,8 +438,7 @@ inline folly::dynamic toDynamic(const TextAttributes &textAttributes) {
|
|||
}
|
||||
if (textAttributes.textDecorationLineType.has_value()) {
|
||||
_textAttributes(
|
||||
"textDecorationLineType",
|
||||
toString(*textAttributes.textDecorationLineType));
|
||||
"textDecorationLine", toString(*textAttributes.textDecorationLineType));
|
||||
}
|
||||
if (textAttributes.textDecorationLineStyle.has_value()) {
|
||||
_textAttributes(
|
||||
|
|
|
@ -63,7 +63,7 @@ static TextAttributes convertRawProp(
|
|||
defaultTextAttributes.textDecorationColor);
|
||||
textAttributes.textDecorationLineType = convertRawProp(
|
||||
rawProps,
|
||||
"textDecorationLineType",
|
||||
"textDecorationLine",
|
||||
defaultTextAttributes.textDecorationLineType);
|
||||
textAttributes.textDecorationLineStyle = convertRawProp(
|
||||
rawProps,
|
||||
|
|
Loading…
Reference in New Issue