Skip to content

Android: Checked/Unchecked State does not announce #30843

@amarlette

Description

@amarlette

Description

Does not announce "checked"/"not checked" on focus of:

Note: This is likely directly related to #30843, where the "selected" accessibilityState is equally non-functional on this same set of components.

React Native version:

0.63

Expected Behavior

Upon focus of an element with the "checked" accessibilityState, the screen reader should announce either "checked" or "not checked", or in the case of elements with the "switch" role, it should announce "on" or "off". Upon activation, if the state is changed, the new state should be announced.

Snack

https://snack.expo.io/ncQPLFuOz

Android Details

The "checked" accessibilityState should correspond to the "checked" property of the AccessibilityNodeInfo. For it to function properly, the "checkable" property of the AccessibilityNodeInfo must also be set to true. Since this is working for most components, I believe this is correctly implemented, and the issue lies on the Javascript side for these individual components.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions