callstack / callstack/react-native-pager-view
setPage prevents Keyboard on Android
- Lenguaje dominante
- TypeScript
- Estrellas
- 3.4k
- Forks
- 476
- Merge medio
- 10 d 21 h
- PR fusionados (30 d)
- 2
Descripción
## Environment
"expo": "~44.0.0",
"react": "17.0.1",
"react-native": "0.64.3",
"react-native-pager-view": "5.4.9",
OS: Ubuntu 20.04
Device OS: Android 11
## Description
setPage prevents initial keyboard open on any PagerView child View except for the first and last.
In my testing, this only occurs on Android and only when the keyboard is not on screen when setPage is called. It does not occur when setPageWithoutAnimation is called or when a page is selected by gesture rather than calling setPage.
## Reproducible Demo
[Snack reproducing bug](https://snack.expo.dev/@aar2222/rn-pager-view-bug-android)
[Repo reproducing bug](https://github.com/adam-adair/rn-pager-view-bug-android)
To reproduce the bug, on an Android device:
- press buttons to navigate to second or third child Views.
- focus the TextInput. Keyboard will dismiss immediately. It can be opened with a second focus.
- The bug doesn't appear if the keyboard is on screen when the button is pressed or if the TextInput is on the first or last child View.
Guía de contribución
Línea de trabajo
Comienza con el Snack o repositorio enlazado y reproduce el problema en un dispositivo Android usando setPage; después compáralo con setPageWithoutAnimation y la navegación por gestos. Se considera completado cuando un TextInput en un hijo intermedio de PagerView abre el teclado en su primer foco después de una navegación programática.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- android, react-native, typescript
- Área
- mobile
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100