callstack / callstack/react-native-bottom-tabs

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

Open
#573 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
1.5k
Forks
109
Avg merge
11h 44m
Merged PRs (30d)
8

Description

### Before submitting a new issue

- [x] I tested using the latest version of the library, as the bug might be already fixed.
- [x] I tested using a [supported version](https://github.com/reactwg/react-native-releases/blob/main/docs/support.md) of react native.
- [x] 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

```shell
"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

```tsx
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,
NativeBottomTabNavigationEventMap
>(Navigator)

function App() {



}
```

Contributor guide

Open the contributing guide

Research direction

Start by running the supplied Expo Router reproduction with react-native-bottom-tabs 1.4.0 on iOS 26, then compare the same tabLongPress listener on iOS 18. Trace the tab event path from the reproduced listener into the library and native iOS implementation. Done means the listener fires on iOS 26 as it does on iOS 18, with regression coverage if the existing test structure supports it.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, react-native, typescript
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.