A framework for building native applications using React
Fix View Coopting View edge case on Android (#52066)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52066 Before, to disable views that were excluded from the order we were setting them to be not important for accessibility. This however breaks coopting behavior of parent views, because parent views will not announce content descriptions of children that are not important for accessibility. Instead of disabling by setting `important for accessibility = no` now we just set `isFocusable = false` which disables focusing but still allows parent views to coopt We also add functionality to restore view focusability when enabling disabling screen readers since `isFocusable` changes keyboard focusability and when screen readers are disabled we don't want to change it. Changelog: [Internal] Reviewed By: joevilches Differential Revision: D76745057 fbshipit-source-id: cc237c5f8a4b894a7caa3e34207080777de440ac
J
Jorge Cabiedes Acosta committed
8cc2874d3f654960122186e54f5a5dc599e9d1db
Parent: d012b2c
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
on 6/24/2025, 4:37:36 PM