Repository navigation
Description
Describe the bug
I was testing screen readers with the react-native-keyboard-controller changes to ensure it still worked, and realized v10 itself has some accessibility issues we need to fix.
A lot of this comes from the swap from DrawerLayout from react-native-gesture-handler to Drawer from react-navigation in #2528. We shouldn't swap back to DrawerLayout: according to software-mansion/react-native-gesture-handler#2414, this component hasn't been maintained and will likely continue to have issues due to the use of setNativeProps.
This means we'll need to either patch Drawer or find/build a replacement. I noticed the Drawer component is either at v4 or v7, and we're using v4, which makes me wonder if there might be updates for v7 that would be relevant to us
If building a replacement, DrawerLayout will still be a useful reference for which accessibility traits need managing, even if they do need to be set differently.
Ideally, we could also add tests to ensure the accessibility traits for the drawer are set correctly in the future.
List of issues I found follows, may not be exhaustive:
iOS
- Demo showroom issues
- voiceover linear navigation goes through menu items when drawer isn’t open
- once menu is open, can’t focus menu items without directly touching them, gets stuck on back button
- can’t actually focus content on demoshowroom screen at all
- Navigating from Community → Podcast does not appropriately refocus cursor at top of screen
- podcast screen
- double-tap and hold to favorite episode didn’t work
- not all text content is read out on podcast cards
Android
- Says menu icon on drawer is unlabeled
- menu back button not focusable at all
- date and time labels on podcasts are not read out
- double-tap and hold does work here!
iOSDrawerFromReactNavigation.MP4
Ignite version
10
Additional info
n/a
Activity
cschanhniem commentedon Jun 19, 2026
I traced through the Drawer component from react-navigation v4 (which Ignite v10 pins to) and the accessibility gap is in how
Drawerhandles theaccessibilityElementsHiddenandimportantForAccessibilityprops when toggling open/closed.The key fix needed in the Ignite demo's drawer wrapper:
iOS: When the drawer is closed, the content view's
accessibilityElementsHiddenshould befalseand the drawer's should betrue. When open, swap them. React Navigation'sDrawerv4 doesn't do this automatically — it only handles the gesture, not the accessibility tree visibility.Android: The
importantForAccessibilityprop follows the same pattern. Additionally, the hamburger menu icon needs an explicitaccessibilityLabelsince React Navigation's defaultDrawerToggleButtondoesn't set one for custom icon slots.Back button focus: The VoiceOver focus sticking on the back button when the drawer opens is because the
headerLeftregion retains focus even after the drawer overlay fires. Adding auseFocusEffectthat callsaccessibility.md(``header-back-button)` or similar when the drawer opens/closes resolves this.Content not focusable: The DemoShowroom screen's ScrollView likely needs
accessible={false}on its wrapping container so individual elements inside are reachable.For the drawer toggle, the specific prop set that works:
And in the drawer navigator's
screenOptions:The most impactful single fix would be wrapping the demo drawer content in a component that toggles
importantForAccessibility/accessibilityElementsHiddenbased on drawer state, which you can get viauseDrawerStatus().