[change] Remove 'accessibilityRelationship'; add 'dataSet'

Remove the 'accessibilityRelationship' prop which is not part of React Native.
The general approach to supporting ARIA-like accessibility APIs in React Native
needs revisiting and it will be easier to stop going down this path.

This patch also reverts the "unstable_ariaSet" change, and renames
"unstable_dataSet" to "dataSet". Avoiding another breaking change to
accessibility props will ease upgrading for now.
This commit is contained in:
Nicolas Gallagher
2020-06-26 14:51:55 -07:00
parent 972317c17c
commit 5dda71c2a6
16 changed files with 24 additions and 126 deletions
@@ -14,7 +14,6 @@ some props are exclusive to or excluded from `multiline`.
| Name | Type | Default |
| ------------------------- | --------- | ------- |
| accessibilityLabel | ?string | |
| accessibilityRelationship | ?Object | |
| accessibilityState | ?Object | |
| autoCapitalize | ?string | 'sentences' |
| autoComplete | ?string | 'on' |
@@ -17,7 +17,6 @@ Please also refer to the in-depth "Accessibility" and "Style" guides.
| ------------------------- | --------- | ------- |
| accessibilityLabel | ?string | |
| accessibilityLiveRegion | ?string | |
| accessibilityRelationship | ?Object | |
| accessibilityRole | ?string | |
| accessibilityState | ?Object | |
| accessibilityValue | ?Object | |
@@ -44,10 +44,6 @@ announce the change. (This is implemented using `aria-live`.)
</Text>
```
### accessibilityRelationship: ?object
...
### accessibilityRole: ?string
Indicates to assistive technologies how to describe the view, e.g., that it is a "button".