-
Notifications
You must be signed in to change notification settings - Fork 25k
Description
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:
- Flatlist Collection Name not supported by Flatlist #30968
- SectionList Collection Name not supported by SectionList #30969
- VirtualizedList Collection Name not supported by VirtualizedList #30970
- ScrollView Collection Name not supported by ScrollView #30971
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.