From d0b86ecb4f33d6b10a99062f050a4d659db4ddfc Mon Sep 17 00:00:00 2001 From: Ziqi Chen Date: Thu, 12 Jul 2018 23:35:56 -0700 Subject: [PATCH] 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 --- Libraries/Components/View/ViewAccessibility.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Libraries/Components/View/ViewAccessibility.js b/Libraries/Components/View/ViewAccessibility.js index 17ed43140e46c6..410994b2b20829 100644 --- a/Libraries/Components/View/ViewAccessibility.js +++ b/Libraries/Components/View/ViewAccessibility.js @@ -42,9 +42,12 @@ export type AccessibilityComponentType = export type AccessibilityRole = | 'none' | 'button' + | 'link' + | 'search' | 'image' | 'keyboardkey' - | 'text'; + | 'text' + | 'adjustable'; module.exports = { AccessibilityTraits: [ @@ -75,8 +78,11 @@ module.exports = { AccessibilityRoles: [ 'none', 'button', + 'link', + 'search', 'image', 'keyboardkey', 'text', + 'adjustable', ], };