mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
e1ae619fce
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52743 We can build an accessibility tree for Talkback by overriding addChildrenForAccessibility of ViewGroup. With this we just manually build a tree that contains the elements we care about in the order we want. We also try to keep most of the tree intact so that coopting works properly Changelog: [Internal] EDITS: After backout, fixed the issue where we were incorrectly setting the `accessibility_order_parent` tag the ReactAxOrderHelper class instead of the actual view. Also, made the cast safe to prevent any unexpected issues. Also refactored the ReactAxOrderHelper functions to not have the block scoped `traverse` functions in favor of just looping through the children of a view when calling them Reviewed By: joevilches Differential Revision: D78669715 fbshipit-source-id: e714367c28e722ce42895531cf18e6f2dc926556