mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-25 16:11:24 +08:00
[react-native] add accessibilityElementsHidden prop
This commit is contained in:
7
types/react-native/index.d.ts
vendored
7
types/react-native/index.d.ts
vendored
@@ -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.
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user