mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Merge textDecoration(LineStyle|LinePattern) into textDecorationStyle
Summary: The [first implementation of `TextAttributes` in Fabric](https://github.com/facebook/react-native/commit/62576bcb7832e08c6fd9f9482285882c37a2ece5) included two separate props instead of `textDecorationStyle`: `textDecorationLineStyle` (single, double, ...) and `textDecorationLinePattern` (dot, dash, dotdash, ...). These two props were implemented in C++ and iOS but never supported in JS. Pre-Fabric (and CSS) on the other hand use a single prop `textDecorationStyle: 'solid' | 'double' | 'dotted' | 'dashed'`. This diff implements this same API in Fabric, and removes the unused `textDecorationLineStyle` and `textDecorationLinePattern` props. Changelog: [iOS][Fixed] - Implement `textDecorationStyle` on iOS and remove unused `textDecorationLineStyle` and `textDecorationLinePattern` from Fabric. Reviewed By: dmitryrykun Differential Revision: D31617598 fbshipit-source-id: f5173e7ecdd31aafa0e5f0e50137eefa0505e007
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f1b5fe1d3e
commit
61755aced1
@@ -47,8 +47,7 @@ public class TextAttributeProps {
|
||||
public static final short TA_KEY_BEST_WRITING_DIRECTION = 13;
|
||||
public static final short TA_KEY_TEXT_DECORATION_COLOR = 14;
|
||||
public static final short TA_KEY_TEXT_DECORATION_LINE = 15;
|
||||
public static final short TA_KEY_TEXT_DECORATION_LINE_STYLE = 16;
|
||||
public static final short TA_KEY_TEXT_DECORATION_LINE_PATTERN = 17;
|
||||
public static final short TA_KEY_TEXT_DECORATION_STYLE = 16;
|
||||
public static final short TA_KEY_TEXT_SHADOW_RAIDUS = 18;
|
||||
public static final short TA_KEY_TEXT_SHADOW_COLOR = 19;
|
||||
public static final short TA_KEY_IS_HIGHLIGHTED = 20;
|
||||
@@ -192,9 +191,7 @@ public class TextAttributeProps {
|
||||
case TA_KEY_TEXT_DECORATION_LINE:
|
||||
result.setTextDecorationLine(entry.getString());
|
||||
break;
|
||||
case TA_KEY_TEXT_DECORATION_LINE_STYLE:
|
||||
break;
|
||||
case TA_KEY_TEXT_DECORATION_LINE_PATTERN:
|
||||
case TA_KEY_TEXT_DECORATION_STYLE:
|
||||
break;
|
||||
case TA_KEY_TEXT_SHADOW_RAIDUS:
|
||||
result.setTextShadowRadius(entry.getInt(1));
|
||||
|
||||
Reference in New Issue
Block a user