callstack / callstack/react-native-pager-view

[V7] iOS Material Top Tabs Static Auth Flow doesn't render first tab

Đang mở
#925 1 bình luận 0 reaction 1 người được giao Được @MrRefactor nhận Xem trên GitHub
fabric
Ngôn ngữ chính
TypeScript
Star
3.4k
Fork
476
Merge trung bình
10 ngày 21 giờ
Pull request đã merge (30 ngày)
2

Mô tả

This issue is a copy of https://github.com/react-navigation/react-navigation/issues/12289 , it was requested to be posted here as it is related to `react-native-pager-view` which is a dependency of Material Top Tabs.

### Current behavior

When using a Material Top Tab as the root element in createStaticNavigation with authentication flow, the first tab is not rendered in iOS when switching between groups. The tab is highlighted.

### Expected behavior

In Web and Android the first tab in the new group is rendered.

### Reproduction

https://snack.expo.dev/@f_faria_brastel/material-tob-static-navigation?platform=ios

### Platform

- [ ] Android
- [x] iOS
- [ ] Web
- [ ] Windows
- [ ] MacOS

### Packages

- [ ] @react-navigation/bottom-tabs
- [ ] @react-navigation/drawer
- [x] @react-navigation/material-top-tabs
- [ ] @react-navigation/stack
- [ ] @react-navigation/native-stack
- [ ] react-native-tab-view

### Environment

- [x] I've removed the packages that I don't use

| package | version |
| -------------------------------------- | ------- |
| @react-navigation/native |7.0.4
| @react-navigation/material-top-tabs |7.0.7
| @react-navigation/native-stack |7.0.3
| react-native-safe-area-context |4.12.0
| react-native-screens |4.1.0
| react-native-pager-view |6.5.1
| react-native |0.76.2
| expo |52.0.11
| node |18.18.2
| npm or yarn | npm

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.