Before submitting a new issue
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
- Create an expo app with expo router
- Install bottom-tabs
- 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>
}
Before submitting a new issue
Bug summary
Tabs don't fire
tabLongPressevent on iOS 26. However, it does work on iOS 18.Library version
1.4.0
Environment info
Steps to reproduce
tabLongPresslistener to a tabReproducible sample code