react-navigation / react-navigation

Routing and navigation for your React Native apps
https://reactnavigation.org
23.5k stars 5.02k forks source link

Drawer menu icon is not clickable when Android TalkBack screen reader is active #12173

Open dmathisen opened 3 hours ago

dmathisen commented 3 hours ago

Current behavior

When Android "TalkBack" mode is enabled (screen reader accessibility feature), the Drawer menu icon is not clickable.

Expected behavior

Users should be able to navigate the app with the screen reader enabled.

Reproduction

https://snack.expo.dev/@winkleapp/drawer-navigation-|-react-navigation

See "Minimal example of drawer-based navigation" here, and run the snack link on Android.

To reproduce:

  1. Open the snack on Android (I'm on Pixel 6a, Android v14)
  2. In Settings -> Accessibility -> Screen Reader -> Enable TalkBack (screen reader). Note: click once to select UI elements and hear the description, then double click to "click" the element.
  3. Everything on the screen is clickable EXCEPT for the hamburger menu icon. Nothing happens, making the app impossible to navigate.

Note: Ideally, the the screen reader would say something like "Menu icon to open drawer naviagation" when the user clicks the menu (using the accessibilityLabel prop).

Platform

Packages

Environment

package version
@react-navigation/native 6.1.18
@react-navigation/drawer 6.7.2
@react-navigation/native-stack 6.11.0
react-native-safe-area-context 4.10.5
react-native-screens 3.31.1
react-native-gesture-handler 2.16.1
react-native-reanimated 3.10.1
react-native 0.74.5
expo 51.0.34
node 20.12.0
npm 10.8.3
github-actions[bot] commented 3 hours ago

Hey @dmathisen! Thanks for opening the issue. It seems that the issue doesn't contain a link to a repro.

The best way to get attention to your issue is to provide an easy way for a developer to reproduce the issue.

You can provide a repro using any of the following:

github-actions[bot] commented 3 hours ago

Couldn't find version numbers for the following packages in the issue:

Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.