callstack / callstack/react-native-bottom-tabs

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

Abierto
#573 0 comentarios 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
TypeScript
Estrellas
1.5k
Forks
109
Merge medio
11 h 44 min
PR fusionados (30 d)
8

Descripción

### 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() {



}
```

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
ios, react-native, typescript
Área
mobile
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Activo
Claridad
Bastante claro
Aptitud para principiantes
48/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.