callstack / callstack/react-native-bottom-tabs

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

Aperta
#573 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
TypeScript
Stelle
1.5k
Fork
109
Merge medio
11h 44m
PR unite (30g)
8

Descrizione

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



}
```

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
ios, react-native, typescript
Ambito
mobile
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Attiva
Chiarezza
Abbastanza chiara
Idoneità per principianti
48/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.