callstack / callstack/react-native-bottom-tabs
[iOS] Tabs don't fire tabLongPress event on iOS 26
- Ngôn ngữ chính
- TypeScript
- Star
- 1.5k
- Fork
- 109
- Merge trung bình
- 11 giờ 44 phút
- Pull request đã merge (30 ngày)
- 8
Mô tả
### 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() {
}
```
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách chạy bản tái hiện Expo Router được cung cấp với react-native-bottom-tabs 1.4.0 trên iOS 26, sau đó so sánh cùng listener tabLongPress trên iOS 18. Truy vết đường đi của sự kiện tab từ listener được tái hiện vào thư viện và phần triển khai iOS native. Được xem là hoàn tất khi listener được kích hoạt trên iOS 26 giống như trên iOS 18, kèm coverage hồi quy nếu cấu trúc test hiện có hỗ trợ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- ios, react-native, typescript
- Lĩnh vực
- mobile
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 48/100