Description
After updating from react-native 0.59 -> 0.60, setting accessible={false}
on touchables does not prevent the component from being seen as an accessible group on android devices.
I've tested with both <TouchableOpacity />
and <TouchableWithoutFeedback />
React Native version:
0.60.4
Steps To Reproduce
- Add a touchable component to the view with the accessible property set explicitly to false:
accessible={false}
. Note: I've tried adding theimportantForAccessibility={'no-hide-descendants'}
property as well and the bug still occurs. - Open the app on an android device. Enable TalkBack. Use the swipe gesture to navigate through accessible components.
Expected Behavior: If the component is part of a parent accessible grouping it is not individually selectable by the screen reader. If the component is not part of a parent accessible grouping then the children (e.g. text) may still be selectable by the screen reader depending on other values (e.g. importantForAccessibility
).
Actual Behavior: The touchable component is always seen as accessible by the screen reader. When part of a parent accessible grouping the parent is selectable and then the child touchable is selectable. Additionally the child touchable always reads out the hint, double tap to activate.
Activity