[iOS] Page is blank after setPage when the screen re-renders on pager events
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- ios, react-native, typescript
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- TypeScript
- Stelle
- 3.4k
- Fork
- 490
- Merge medio
- 2g 5h
- PR unite (30g)
- 34
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di callstack/react-native-pager-view
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 67/100
callstack/react-native-pager-view#1205 ·
I maintainer di solito rispondono entro 1 giorno
-
[Android/Fabric] setPageWithoutAnimation from useLayoutEffect is ignored when targeting a newly added pageForse già presa @Luccacvb l’ha presa oggi. Aperta
Difficoltà 4/5 1-2 giorni Idoneità per principianti 58/100
callstack/react-native-pager-view#1196 ·
I maintainer di solito rispondono entro 1 giorno
-
[iOS] Focused TextInput keeps focus and keyboard after switching pages (v9)Forse già presa @TaduJR l’ha presa 9 giorni fa. Aperta
Difficoltà 4/5 1-2 giorni Idoneità per principianti 69/100
callstack/react-native-pager-view#1192 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 73/100
callstack/react-native-pager-view#1191 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
callstack/react-native-pager-view#1189 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di callstack/react-native-pager-view
Issue simili
-
bug ui-dashboard
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 91/100
caelestia-dots/caelestia#534 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area: scripts bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
tdk-landscape/tdk-cli-core#2706 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
bobadilla-tech/biasmarket.com#402 ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
javvadivijayprasad/sel2pw#28 ·