File tree Expand file tree Collapse file tree 4 files changed +4
-3
lines changed
ReactAndroid/src/main/java/com/facebook/react/views
ReactCommon/react/renderer/attributedstring Expand file tree Collapse file tree 4 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,7 @@ const Text: React.AbstractComponent<
226
226
accessibilityState = { _accessibilityState }
227
227
{ ...eventHandlersForText }
228
228
accessibilityLabel = { ariaLabel ?? accessibilityLabel }
229
+ accessibilityUnit = "verbatim"
229
230
accessibilityRole = {
230
231
role ? getAccessibilityRoleFromRole ( role ) : accessibilityRole
231
232
}
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public class TextAttributeProps {
53
53
public static final short TA_KEY_IS_HIGHLIGHTED = 20 ;
54
54
public static final short TA_KEY_LAYOUT_DIRECTION = 21 ;
55
55
public static final short TA_KEY_ACCESSIBILITY_ROLE = 22 ;
56
- public static final short TA_KEY_ACCESSIBILITY_UNIT = 99 ;
56
+ public static final short TA_KEY_ACCESSIBILITY_UNIT = 89 ;
57
57
58
58
public static final int UNSET = -1 ;
59
59
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ object ReactMapBufferPropSetter {
64
64
private const val VP_POINTER_OVER_CAPTURE = 44
65
65
private const val VP_BORDER_CURVES = 45 // iOS only
66
66
private const val VP_FG_COLOR = 46 // iOS only?
67
- private const val VP_ACCESSIBILITY_UNIT = 99
67
+ private const val VP_ACCESSIBILITY_UNIT = 89
68
68
69
69
// Yoga values
70
70
private const val YG_BORDER_WIDTH = 100
Original file line number Diff line number Diff line change @@ -1076,7 +1076,7 @@ constexpr static MapBuffer::Key TA_KEY_IS_HIGHLIGHTED = 20;
1076
1076
constexpr static MapBuffer::Key TA_KEY_LAYOUT_DIRECTION = 21 ;
1077
1077
constexpr static MapBuffer::Key TA_KEY_ACCESSIBILITY_ROLE = 22 ;
1078
1078
constexpr static MapBuffer::Key TA_KEY_LINE_BREAK_STRATEGY = 23 ;
1079
- constexpr static MapBuffer::Key TA_KEY_ACCESSIBILITY_UNIT = 99 ;
1079
+ constexpr static MapBuffer::Key TA_KEY_ACCESSIBILITY_UNIT = 89 ;
1080
1080
1081
1081
// constants for ParagraphAttributes serialization
1082
1082
constexpr static MapBuffer::Key PA_KEY_MAX_NUMBER_OF_LINES = 0 ;
You can’t perform that action at this time.
0 commit comments