Skip to content

Commit d0b86ec

Browse files
Ziqi Chenfacebook-github-bot
Ziqi Chen
authored andcommittedJul 13, 2018
added in the three roles: search, adjustable, link that require localization
Summary: Added in props for three more roles: link, search, and adjustable Reviewed By: blavalla Differential Revision: D8788186 fbshipit-source-id: acd1d667a43bea753964d128bd4525ece90d06b3
1 parent 6ed6bff commit d0b86ec

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
 

‎Libraries/Components/View/ViewAccessibility.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,12 @@ export type AccessibilityComponentType =
4242
export type AccessibilityRole =
4343
| 'none'
4444
| 'button'
45+
| 'link'
46+
| 'search'
4547
| 'image'
4648
| 'keyboardkey'
47-
| 'text';
49+
| 'text'
50+
| 'adjustable';
4851

4952
module.exports = {
5053
AccessibilityTraits: [
@@ -75,8 +78,11 @@ module.exports = {
7578
AccessibilityRoles: [
7679
'none',
7780
'button',
81+
'link',
82+
'search',
7883
'image',
7984
'keyboardkey',
8085
'text',
86+
'adjustable',
8187
],
8288
};

0 commit comments

Comments
 (0)