callstack / callstack/react-native-pager-view
Android: Keyboard gets closed immediately
- Vorherrschende Sprache
- TypeScript
- Sterne
- 3.4k
- Forks
- 476
- Ø Merge
- 10 T. 21 Std.
- Gemergte PRs (30 T.)
- 2
Beschreibung
## 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)`
```
```
Beitragsleitfaden
Rechercherichtung
Beginne damit, das Problem mit den aufgeführten React Native-, react-native-pager-view- und Android-Einstellungen unter Verwendung des dreiseitigen PagerView-Beispiels und des setPage-Aufrufs zu reproduzieren. Vergleiche das Tastaturverhalten mit adjustResize und den gemeldeten Prop-Kombinationen; abgeschlossen ist die Aufgabe, wenn die Tastatur beim ersten Fokus auf ein Eingabefeld im mehrseitigen Formular geöffnet bleibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- android, react-native
- Bereich
- mobile
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100