Skip to content

Commit ae2773f

Browse files
jorge-cabfacebook-github-bot
authored andcommitted
Make AccessibilityOrder also include the host view (#51027)
Summary: Pull Request resolved: #51027 Simple change to make the host of `experimental_accessibilityOrder` include the view that hosts the property in its order. Changelog: [Internal] Reviewed By: joevilches Differential Revision: D73808337 fbshipit-source-id: 441329a6ca0cd4b0aba08bddb15143215d337e01
1 parent 2d3285a commit ae2773f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAxOrderHelper.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,7 @@ private object ReactAxOrderHelper {
122122
}
123123
}
124124

125-
if (root is ViewGroup) {
126-
for (i in 0 until root.childCount) {
127-
traverseAndDisableAxFromExcludedViews(root.getChildAt(i), root)
128-
}
129-
}
125+
traverseAndDisableAxFromExcludedViews(root, root)
130126

131127
return axOrderViews
132128
}

0 commit comments

Comments
 (0)