callstack / callstack/react-native-pager-view
Keyboard Aware Scroll View not working if inside Pager View
- Lingua principale
- TypeScript
- Stelle
- 3.4k
- Fork
- 476
- Merge medio
- 10g 21h
- PR unite (30g)
- 2
Descrizione
## Keyboard Aware Scroll View is not working inside Pager View
Hi,
I have trouble when I use KASV inside Pager View. I have component using Pager View. Inside pager view I have another component (link.component).
```
{links.map((link, index) => {
return (
{link.isScrollable ? (
{link.component}
) : (
link.component
)}
);
})}
```
and the link.component looks more or less like:
```
AAAA
```
I observe two situations:
1. when I put height to Pager View style ``` style={[flex: 1, { height }]} ``` I can tap once in TextInput to show keyboard, but KeyboardAwareScrollView don't scroll to TextInput (show TI above keyboard). It seems KeyboardAwareScrollView doesn't work at all.
2. when I don't put height to Pager View style ``` style={[flex: 1]} ``` In this case I have to tap twice in TextInput to focus it and show keyboard, but in this case KeyboardAwareScrollView working properly and scrolling focused TextInput above keyboard.
Is this possible to work correctly Pager View and KeyboardAwareScrollView together? As I know KeyboardAwareScrollView need style={flex: 1} in parent component.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Riproduci l’annidamento segnalato di PagerView, ScrollView e KeyboardAwareScrollView usando le due configurazioni dell’altezza di PagerView mostrate nell’issue. Inizia confrontando il comportamento del focus e dello scorrimento della tastiera con e senza l’altezza esplicita; è completato quando un TextInput riceve il focus al primo tocco e KeyboardAwareScrollView lo fa scorrere sopra la tastiera.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- react-native
- Ambito
- mobile
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100