callstack / callstack/react-native-bottom-tabs
[iOS] Tabs don't fire tabLongPress event on iOS 26
- Vorherrschende Sprache
- TypeScript
- Sterne
- 1.5k
- Forks
- 109
- Ø Merge
- 11 Std. 44 Min.
- Gemergte PRs (30 T.)
- 8
Beschreibung
### 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() {
}
```
Beitragsleitfaden
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- ios, react-native, typescript
- Bereich
- mobile
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 48/100