-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Added Support for Entrance/exit from collection by Flatlist #31630
Added Support for Entrance/exit from collection by Flatlist #31630
Conversation
…o accessibility/flatlist-announcement
Base commit: 52a9fed |
Thank you @anaskhraza for this Pull Request! I've gotten you on the Improved React Native Accessibility board and added a reviewer. |
@@ -135,6 +136,8 @@ public static String getValue(AccessibilityRole role) { | |||
return "android.widget.SpinButton"; | |||
case SWITCH: | |||
return "android.widget.Switch"; | |||
case LIST: | |||
return "android.widget.ListView"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll want to make this "android.widget.AbsListView.class" to match Talkback's internal implementation here:
Base commit: 52a9fed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for the fix!
@blavalla has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary
Issue #30964 .When using a screen reader, flatlist does not announce entrance/ exit from the flat list.
Changelog
[Android] [Changed] - Added support for accessibility role of "list" for flatlist and sectioned list
Test Plan
I have added accessibility role prop in flatlist and sectioned list in rntester app, that will announce entrance/ exit from flatlist and sectioned list.