callstack / callstack/react-native-pager-view
Android: Keyboard gets closed immediately
- Lingua principale
- TypeScript
- Stelle
- 3.4k
- Fork
- 476
- Merge medio
- 10g 21h
- PR unite (30g)
- 2
Descrizione
## 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)`
```
```
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia riproducendo il problema con le impostazioni indicate di React Native, react-native-pager-view e Android, utilizzando l’esempio PagerView a tre pagine e la chiamata a setPage. Confronta il comportamento della tastiera con adjustResize e le combinazioni di props segnalate; il lavoro è completato quando la tastiera rimane aperta al primo focus su un campo di input nel modulo multipagina.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- android, react-native
- Ambito
- mobile
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100