[change] Remove accessibilityTraits and accessibilityComponentType props

These props are deprecated in React Native and replaced by accessibilityRole

Ref #1352
This commit is contained in:
Nicolas Gallagher
2019-10-04 11:37:25 -07:00
parent 1af0218d26
commit ae94551ac5
13 changed files with 11 additions and 97 deletions
+1 -4
View File
@@ -67,10 +67,7 @@ announce text in the `Text` view because of its
In some cases, we also want to alert the end user of the type of selected
component (i.e., that it is a “button”). To provide more context to screen
readers on the web, you should use the `accessibilityRole` property. (Note that
React Native for Web also provides a compatibility mapping of equivalent
`accessibilityTraits` and `accessibilityComponentType` values to
`accessibilityRole`).
readers on the web, you should use the `accessibilityRole` property.
The `accessibilityRole` prop is used to infer an [analogous HTML
element][html-aria-url] and ARIA `role`, where possible. In most cases, both