Skip to content

Commit 10b603f

Browse files
Ziqi Chenfacebook-github-bot
Ziqi Chen
authored andcommittedJul 17, 2018
added image button as option for accessibility role
Summary: Because we're now separating accessibilityTraits into accessibilityRole and accessibilityState, we're going to only allow one role to be set, and allow one preset combinations of roles that make sense. This diff adds image button as a role. Reviewed By: PeteTheHeat Differential Revision: D8846958 fbshipit-source-id: dad3783654b20abeb29767cdad7450d1896058c2
1 parent 10ebcbc commit 10b603f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎Libraries/Components/View/ViewAccessibility.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ export type AccessibilityRole =
4747
| 'image'
4848
| 'keyboardkey'
4949
| 'text'
50-
| 'adjustable';
50+
| 'adjustable'
51+
| 'imagebutton';
5152

5253
module.exports = {
5354
AccessibilityTraits: [
@@ -84,5 +85,6 @@ module.exports = {
8485
'keyboardkey',
8586
'text',
8687
'adjustable',
88+
'imagebutton',
8789
],
8890
};

0 commit comments

Comments
 (0)
Please sign in to comment.