[iOS] Page is blank after setPage when the screen re-renders on pager events
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- ios, react-native, typescript
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 3.4k
- Forks
- 488
- Merge medio
- 2 d 7 h
- PR fusionados (30 d)
- 29
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de callstack/react-native-pager-view
-
Dificultad 3/5 1-2 días Aptitud para principiantes 67/100
callstack/react-native-pager-view#1205 ·
Los mantenedores suelen responder en 1 día
-
[Android] v9: a swipe reports idle when the finger lifts, before the page settles (settling is never sent)Posiblemente ocupada @mozzius la tomó hace 1 día. Abierto
Dificultad 4/5 1-2 días Aptitud para principiantes 25/100
callstack/react-native-pager-view#1199 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 1-2 días Aptitud para principiantes 58/100
callstack/react-native-pager-view#1196 ·
Los mantenedores suelen responder en 1 día
-
[iOS] Focused TextInput keeps focus and keyboard after switching pages (v9)Posiblemente ocupada @TaduJR la tomó hace 7 días. Abierto
Dificultad 4/5 1-2 días Aptitud para principiantes 69/100
callstack/react-native-pager-view#1192 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 73/100
callstack/react-native-pager-view#1191 ·
Los mantenedores suelen responder en 1 día
Todos los issues de callstack/react-native-pager-view
Issues similares
-
backend refactor
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
NIAEFEUP/tts#927 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
callstackincubator/react-native-harness#296 ·
Los mantenedores suelen responder en 1 día
-
Editor bug with grouped nodesAbiertostatus:in-linear
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
n8n-io/n8n#42293 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
verified
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Los mantenedores suelen responder en 5 días
-
Add inputmode attribute support (forwarded to the inner input)Quizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Neovici/cosmoz-input#467 ·
Los mantenedores suelen responder en 1 día