Fix textDecorationLine in Fabric Android

Summary: This diff fixes ```textDecorationLine: 'line-through'``` in Fabric Android

Reviewed By: JoshuaGross

Differential Revision: D15989149

fbshipit-source-id: 907bb64abb247c3e32a56df7f87538dce1a08826
This commit is contained in:
David Vacca
2019-06-26 10:05:33 -07:00
committed by Facebook Github Bot
parent 90897a9f62
commit 01d0cd540c
@@ -306,10 +306,10 @@ public class TextAttributeProps {
mIsUnderlineTextDecorationSet = false;
mIsLineThroughTextDecorationSet = false;
if (textDecorationLineString != null) {
for (String textDecorationLineSubString : textDecorationLineString.split(" ")) {
for (String textDecorationLineSubString : textDecorationLineString.split("-")) {
if ("underline".equals(textDecorationLineSubString)) {
mIsUnderlineTextDecorationSet = true;
} else if ("line-through".equals(textDecorationLineSubString)) {
} else if ("strikethrough".equals(textDecorationLineSubString)) {
mIsLineThroughTextDecorationSet = true;
}
}