KeyboardAvoidingView is not adjusting correctly because the coordinate system mismatch #33421
Labels
API: Keyboard
Component: KeyboardAvoidingView
Needs: Triage 🔍
Stale
There has been a lack of activity on this issue and it may be closed soon.
Description
You are comparing height using different coordinate systems.
The keyboard frame is in window system, and the view's frame is in parent view's coordinate system.
We have to convert the frame to the same coordinate system then do compare.
Here is how I fix it:
The buggy version:
Version
0.66
Output of
npx react-native info
don't needed
Steps to reproduce
don't needed
Snack, code example, screenshot, or link to a repository
No response
The text was updated successfully, but these errors were encountered: