Skip to content

Commit 39d2e18

Browse files
committed
[fix] Text accessibilityRole propTypes warning
Close necolas#1320
1 parent e9f68e3 commit 39d2e18

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

packages/react-native-web/src/exports/Text/TextPropTypes.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,16 @@ const TextPropTypes = {
1616
accessibilityComponentType: string,
1717
accessibilityLabel: string,
1818
accessibilityLiveRegion: oneOf(['assertive', 'none', 'polite']),
19-
accessibilityRole: oneOf(['button', 'heading', 'label', 'link', 'listitem', 'none']),
19+
accessibilityRole: oneOf([
20+
'button',
21+
'header',
22+
'heading',
23+
'label',
24+
'link',
25+
'listitem',
26+
'none',
27+
'text'
28+
]),
2029
accessibilityTraits: oneOfType([array, string]),
2130
accessible: bool,
2231
children: any,

0 commit comments

Comments
 (0)