Skip to content

Android: Collection Name not supported by Flatlist, SectionList, VirtualizedList, or ScrollView #30972

@amarlette

Description

@amarlette

Description

Collections on Android have a name defined by their contentDescription property. This name will be announced as part of the "in list" and "out of list" announcements. Since we do not support the list/grid/pager roles, the contentDescription's set on these components don't announce these names upon focus into or out of any descendant elements.

Collection Name not from collection Not supported by:

React Native version:

v0.63

Expected Behavior

If one of the list components has a contentDescription set on it, on first focus into that list, screen readers will announce "in list ". Upon focus out of the list, it should announce "out of list ".

Android Details

This should work properly if any of the collection roles were able to be set, which makes this task dependent on #30839. By adding these roles, and properly setting the contentDescription the collection name should automatically be announced.

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