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