callstack / callstack/react-native-pager-view
Android: Keyboard gets closed immediately
- Dominant language
- TypeScript
- Stars
- 3.4k
- Forks
- 476
- Avg merge
- 10d 21h
- Merged PRs (30d)
- 2
Description
## 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)`
```
```
Contributor guide
Assessment
This issue has not been assessed yet.