Skip to content

role prop not supported unlike accessibilityRole #151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
getusha opened this issue Aug 14, 2023 · 1 comment · Fixed by #150
Closed

role prop not supported unlike accessibilityRole #151

getusha opened this issue Aug 14, 2023 · 1 comment · Fixed by #150

Comments

@getusha
Copy link
Contributor

getusha commented Aug 14, 2023

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.

@SpadarShut
Copy link

Any plans to merge this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants