eslint-plugin-react-native-a11y icon indicating copy to clipboard operation
eslint-plugin-react-native-a11y copied to clipboard

role prop not supported unlike accessibilityRole

Open getusha opened this issue 1 year ago • 1 comments

Encountering the following error:

Missing a11y props. Expected one of: accessibilityRole OR BOTH accessibilityLabel + accessibilityHint OR BOTH accessibilityActions + onAccessibilityAction

Despite having a valid role value, this error is being triggered.

Example

<Image role="img" />

accessibilityRole is deprecated in react-native-web additionally the role prop has precedence over the accessibilityRole prop.

getusha avatar Aug 14 '23 19:08 getusha

Any plans to merge this PR?

SpadarShut avatar Feb 05 '24 17:02 SpadarShut