Closed
Description
Describe the bug
Incorrect first frame when using KeyboardAvoidingView
/KeyboardStickyView
and keyboard gets resized
Code snippet
Reproducible in example app.
Repo for reproducing
Reproducible in example app.
To Reproduce
Steps to reproduce the behavior:
- Go to
KeyboardAvoidingView
/KeyboardStickyView
example screens - Click on TextInput and wait for keyboard to be shown
- Resize keyboard (change to emoji input)
- Animation starts from a different frame (i. e. view moved down and then animate)
Expected behavior
Animation should start from current/last position.
Screenshots
resize-jump.mp4
Smartphone (please complete the following information):
- Desktop OS:MacOS 14.1
- Device: Pixel 7 Pro
- OS: Android 14
- RN version: 0.72.4
- RN architecture: old
- JS engine: Hermes
- Library version: 1.10.0
Additional context
It happens because progress
becomes 0.7
instead of 1, and because of that we see initial jump.