Skip to content

[iOS] Tabs don't fire tabLongPress event on iOS 26 #573

Description

@alizahid

Before submitting a new issue

  • I tested using the latest version of the library, as the bug might be already fixed.
  • I tested using a supported version of react native.
  • I checked for possible duplicate issues, with possible answers.

Bug summary

Tabs don't fire tabLongPress event on iOS 26. However, it does work on iOS 18.

Library version

1.4.0

Environment info

"react-native": "0.86.3",
"expo": "~57.0.20",
"expo-router": "~57.0.19",
"react-native-bottom-tabs": "^1.4.0",
"@bottom-tabs/react-navigation": "^1.4.0",

Steps to reproduce

  1. Create an expo app with expo router
  2. Install bottom-tabs
  3. Add a tabLongPress listener to a tab

Reproducible sample code

import {
  createNativeBottomTabNavigator,
  type NativeBottomTabNavigationEventMap,
  type NativeBottomTabNavigationOptions,
} from '@bottom-tabs/react-navigation'
import { type TabNavigationState, withLayoutContext } from 'expo-router'
import { type ParamListBase } from 'expo-router/react-navigation'

const { Navigator } = createNativeBottomTabNavigator()

const Tabs = withLayoutContext<
  NativeBottomTabNavigationOptions,
  typeof Navigator,
  TabNavigationState<ParamListBase>,
  NativeBottomTabNavigationEventMap
>(Navigator)

function App() {
  <Tabs>
    <Tabs.Screen
      listeners={{
        tabLongPress() {
          console.log('tabLongPress')
        },
      }}
      name="index"
    />
  </Tabs>
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions