Skip to content

Cannot disable accessible for touchables on Android #25921

@RyanThomas73

Description

@RyanThomas73

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

  1. Add a touchable component to the view with the accessible property set explicitly to false: accessible={false}. Note: I've tried adding the importantForAccessibility={'no-hide-descendants'} property as well and the bug still occurs.
  2. 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.

https://snack.expo.io/ByS5pkG7S

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugPlatform: AndroidAndroid applications.StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions