[iOS] Page is blank after setPage when the screen re-renders on pager events
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- ios, react-native, typescript
Hướng nghiên cứu
Start with the #1154 repro screen at example/src/gh-issues/Issue1154PageChangeFocusRepro.tsx and apply the two event-log changes described in the issue. Run the six-step sequence on an iOS simulator using version 9.0.10. The issue is resolved when page 2 remains visible after the final steps; linked pull request #1203 is already open.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
On iOS, the pager can show an empty page after setPage. The status line says the page is selected, but the pager area is empty: no text and no inputs. The page stays empty after the pager stops moving.
This surfaced while reviewing #1193 (the iOS focus fix). The repro screen in that PR triggers it. #1193 does not cause it, because the same steps show a blank page on 9.0.10 without that PR.
Repro
Use the #1154 repro screen (example/src/gh-issues/Issue1154PageChangeFocusRepro.tsx) on main, with two changes. Each change makes the event log above the pager change length when the pager changes page:
// In the "Go N" buttons, before setPage:
setEvents([]);
// On the PagerView:
onPageScrollStateChanged={(e) => {
if (e.nativeEvent.pageScrollState === 'idle') {
log('state idle');
}
}}
Then:
- Tap the input on page 0, type a few characters, and tap Go 1.
- Tap the input on page 1, type, and tap Go 2.
- Tap the input on page 2, type, and tap Go 1.
- Tap the input on page 1, type, and tap Go 0.
- Tap the input on page 0, type, and tap Go 1.
- Tap Go 2.
Expected: page 2 shows.
Actual: the status line says Selected: 2, but the pager area is empty.
Each part is needed. Without the two changes, without typing, without focusing the inputs, or without the first step, the page shows correctly.
Recording
https://github.com/user-attachments/assets/8381b1be-60ca-4cf6-b940-c5ebd8eb72eb
Versions: react-native-pager-view 9.0.10 (main at 4914ab6), iOS 26.5 simulator (iPhone 17 Pro Max), iOS only.
- Ngôn ngữ chính
- TypeScript
- Star
- 3.4k
- Fork
- 488
- Merge trung bình
- 2 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 29
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của callstack/react-native-pager-view
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 67/100
callstack/react-native-pager-view#1205 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Android] v9: a swipe reports idle when the finger lifts, before the page settles (settling is never sent)Có thể đã có người làm @mozzius đã nhận 1 ngày trước. Đang mở
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 25/100
callstack/react-native-pager-view#1199 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 58/100
callstack/react-native-pager-view#1196 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[iOS] Focused TextInput keeps focus and keyboard after switching pages (v9)Có thể đã có người làm @TaduJR đã nhận 8 ngày trước. Đang mở
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 69/100
callstack/react-native-pager-view#1192 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 73/100
callstack/react-native-pager-view#1191 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của callstack/react-native-pager-view
Issue tương tự
-
category::task code priority::normal
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
e0ipso/strikethroo#145 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
cocos/cocos-docs#3333 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
RevenueCat/react-native-purchases#2079 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
RevenueCat/purchases-hybrid-common#2039 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agent-reported area/react bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày