callstack / callstack/react-native-pager-view

Android: Keyboard gets closed immediately

Abierto
#670 5 comentarios 11 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
3.4k
Forks
476
Merge medio
10 d 21 h
PR fusionados (30 d)
2

Descripción

## Environment
`"react-native-pager-view": "^6.1.2"`
`"react-native": "0.65.3"`
`"react-navigation": all packages 5.x.x`
`"react-native-screens": "3.4.0",` -> this is where usually this bug is solved but it didn't work for me

AndroidManifest.xml:
`android:windowSoftInputMode="adjustResize"` - I need this, otherwise adjustPan pushes the header as well when keyboard is opened

## Description
So after trying out many combinations and solutions, this is what I found.
Hope you can help me.

We have multi page apply form process.
This includes input on almost every screen.
Issue happens first time when I focus on input, it automatically closes.
I tried combinations when:

- Parent does not rerender and I only have 2 pages - It works as expected (but I will never have only 2 pages)
- Parent does not rerender and I there are more than 2 pages - keyboard opens and closes immediately
- Parent rerenders and I there are more than 2 pages - keyboard opens and closes immediately
- Tried with `collapsable` props, still the same

## Reproducible Demo

`viewPager?.current?.setPage(currentPage + 1)`

```











```

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza reproduciendo el problema con la configuración indicada de React Native, react-native-pager-view y Android, utilizando el ejemplo de PagerView de tres páginas y la llamada a setPage. Compara el comportamiento del teclado con adjustResize y las combinaciones de props indicadas; se considera terminado cuando el teclado permanece abierto al enfocar por primera vez un campo de entrada en el formulario de varias páginas.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
android, react-native
Á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
42/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.