Skip to content

Commit 9700540

Browse files
dmytrorykunfacebook-github-bot
authored andcommitted
Bring back the UNSET constant to TextAttributeProps (#43491)
Summary: Pull Request resolved: #43491 This diff brings back the `UNSET` constant to `TextAttributeProps`. The removal of this constant was an unnecessary breaking change, that has broken several third-party libraries. Changelog: [Android][Fixed] - Bring back the UNSET constant to TextAttributeProps. Reviewed By: fabriziocucci Differential Revision: D54899524 fbshipit-source-id: 368bde77d43f310fd458537d0191d09174fa5167
1 parent 305c281 commit 9700540

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/react-native/ReactAndroid/api/ReactAndroid.api

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7083,6 +7083,7 @@ public class com/facebook/react/views/text/TextAttributeProps : com/facebook/rea
70837083
public static final field TA_KEY_TEXT_SHADOW_OFFSET_DY S
70847084
public static final field TA_KEY_TEXT_SHADOW_RADIUS S
70857085
public static final field TA_KEY_TEXT_TRANSFORM S
7086+
public static final field UNSET I
70867087
protected field mAccessibilityRole Lcom/facebook/react/uimanager/ReactAccessibilityDelegate$AccessibilityRole;
70877088
protected field mAllowFontScaling Z
70887089
protected field mBackgroundColor I

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ public class TextAttributeProps implements EffectiveTextAttributeProvider {
6262
public static final short TA_KEY_ROLE = 26;
6363
public static final short TA_KEY_TEXT_TRANSFORM = 27;
6464

65+
public static final int UNSET = -1;
66+
6567
private static final String PROP_SHADOW_OFFSET = "textShadowOffset";
6668
private static final String PROP_SHADOW_OFFSET_WIDTH = "width";
6769
private static final String PROP_SHADOW_OFFSET_HEIGHT = "height";

0 commit comments

Comments
 (0)