From 89d60e895de48fa9716e92e7f05ae8b5b8dd21bb Mon Sep 17 00:00:00 2001 From: Dan Homola Date: Mon, 25 Jun 2018 09:00:30 +0200 Subject: [PATCH] [react-native] add accessibilityElementsHidden prop --- types/react-native/index.d.ts | 7 +++++++ types/react-native/test/index.tsx | 10 ++++++++++ 2 files changed, 17 insertions(+) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 7ab8be7b1d..20007e80c8 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -1797,6 +1797,13 @@ export interface AccessibilityPropsAndroid { } export interface AccessibilityPropsIOS { + /** + * A Boolean value indicating whether the accessibility elements contained within this accessibility element + * are hidden to the screen reader. + * @platform ios + */ + accessibilityElementsHidden?: boolean; + /** * Accessibility traits tell a person using VoiceOver what kind of element they have selected. * Is this element a label? A button? A header? These questions are answered by accessibilityTraits. diff --git a/types/react-native/test/index.tsx b/types/react-native/test/index.tsx index b744911ed9..344ff02fae 100644 --- a/types/react-native/test/index.tsx +++ b/types/react-native/test/index.tsx @@ -598,3 +598,13 @@ class StylePropsTest extends React.PureComponent { } const listViewDataSourceTest = new ListView.DataSource({rowHasChanged: () => true}) + +class AccessibilityViewHidingTest extends React.Component { + render() { + return ( + + + + ); + } +}