Skip to content

role prop not supported unlike accessibilityRole #151

Closed
@getusha

Description

@getusha

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions