Skip to content

Commit 654435d

Browse files
Knott Wittawatfacebook-github-bot
Knott Wittawat
authored andcommitted
Fix VoiceOver not identifying the header correctly
Reviewed By: sophiebits Differential Revision: D7678644 fbshipit-source-id: ee6c57f2a603eed1c41f22a4142474ab6957ccdf
1 parent c5ca26a commit 654435d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Libraries/Text/TextProps.js

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
'use strict';
1313

14+
import type {AccessibilityTrait} from 'ViewAccessibility';
15+
1416
import type {Node} from 'react';
1517

1618
import type {LayoutEvent, PressEvent} from 'CoreEventTypes';
@@ -28,6 +30,7 @@ type PressRetentionOffset = {
2830
*/
2931
export type TextProps = $ReadOnly<{
3032
accessible?: ?boolean,
33+
accessibilityTraits?: AccessibilityTrait | Array<AccessibilityTrait>,
3134
allowFontScaling?: ?boolean,
3235
children?: Node,
3336
ellipsizeMode?: 'clip' | 'head' | 'middle' | 'tail',

0 commit comments

Comments
 (0)