[react-native] add accessibilityElementsHidden prop

This commit is contained in:
Dan Homola
2018-06-25 09:00:30 +02:00
parent 8cfe3b2c5a
commit 89d60e895d
2 changed files with 17 additions and 0 deletions

View File

@@ -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.

View File

@@ -598,3 +598,13 @@ class StylePropsTest extends React.PureComponent {
}
const listViewDataSourceTest = new ListView.DataSource({rowHasChanged: () => true})
class AccessibilityViewHidingTest extends React.Component {
render() {
return (
<View accessibilityElementsHidden importantForAccessibility="no-hide-descendants">
<View />
</View>
);
}
}