Permalink
Browse files

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
  • Loading branch information...
ziqichen6 authored and facebook-github-bot committed Jul 17, 2018
1 parent 10ebcbc commit 10b603fdd34919f72304720c25d1420668a6213a
Showing with 3 additions and 1 deletion.
  1. +3 −1 Libraries/Components/View/ViewAccessibility.js
@@ -47,7 +47,8 @@ export type AccessibilityRole =
| 'image'
| 'keyboardkey'
| 'text'
| 'adjustable';
| 'adjustable'
| 'imagebutton';
module.exports = {
AccessibilityTraits: [
@@ -84,5 +85,6 @@ module.exports = {
'keyboardkey',
'text',
'adjustable',
'imagebutton',
],
};

0 comments on commit 10b603f

Please sign in to comment.