Skip to content

NavigationBar: VoiceOver reads the tabs as buttons, with no tab role or position #5351

Backlog

Description

@Doberjohn

Current behaviour

VoiceOver reads NavigationBar's tabs as "selected, Album, 3, Button", "Library, Button", "Favorites, Button", "Settings, Button": no tab role and no position. NavigationBar gives each tab role="button" on iOS and role="tab" on the other platforms, inside a tablist (NavigationBar.tsx). TalkBack reads "selected. Album, 3. Tab", but speaks no position either.

Expected behaviour

Each tab is read as a tab, with its position if the platform supports it, on iOS as on Android.

How to reproduce?

  1. Render a NavigationBar with four routes, one with a badge.
  2. With VoiceOver on, swipe across the tabs.

Preview

Screenshots can be attached.

What have you tried so far?

6.0.0-alpha.4's BottomNavigation.Bar had the same iOS role, carried into NavigationBar by #5006. Not checked: whether React Native now gives iOS a tab trait for role="tab", so the iOS branch could go.

Your Environment

software version
ios iOS 27.2.1 (iPhone 13 Pro, VoiceOver)
android 13 (API 33 emulator), TalkBack 14.2
react-native 0.88.1 (New Architecture)
react-native-paper 6.0.0-alpha.5 (main at 56434eb)
node n/a
npm or yarn n/a
expo sdk 58 (expo 58.0.23)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions