-
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
translate-with-padding
doesn't work during scroll
#853
Comments
ScreenRecording_03-12-2025.1-32-32.PM_1.MP4On paper it works well 🙂 Will check what's wrong with Fabric! |
@kirillzyusko Great, not sure but you might need to have an "active" scroll for this to happen, so like scroll activly happening when closing. In your example it looks like the scroll came to a stop before closing |
Still on paper everything works as expected: ScreenRecording_03-12-2025.8-20-01.PM_1.MP4 |
Can confirm - on Fabric issue is reproducible! |
Found another example of where something is off, no idea if it is unrelated or or a clue to where the issue is. To reproduce:
|
@henninghall But for chat-like apps a single message should be displayed in the bottom (near text input)? Basically it works as expected by design - we always apply translateY (it always reflects keyboard height), and we apply
As always - each mode comes with its own advantages/disadvantages. You can try to apply conditional behavior (i.e. content is not scrollable - use padding, content is scrollable/have a lot of messages - use translate-with-padding). |
Okay I understand, so its unrelated to the bug then. Thanks for clearifying.
Not really, it is very common to have them in top, check for example whatsapp / messenger when there is a single message in a conversation. ![]() |
Would a solution be to translate the content (messages) to the opposition direction of the list translation until the padding is applied? (as long as keyboard is not pushing the content, ie a full list) Getting a little bit off topic here 😄 |
Describe the bug
First, thansks for your great work on this @kirillzyusko, tackling one of react native's biggest pain points. I tried out the new
translate-with-padding
behaviour which increased performance a lot, thats great!Found that
translate-with-padding
doesn't work properly during scroll. Its a clear jump in when closing (or opening) the keyboard. See comparison withpadding
To Reproduce
Reproduced in unchanged fabric example repo (haven't tested paper).
translate-with-padding
(doesn't work as expected)translate-with-padding.mov
padding
(works as expected)padding.mov
To Reproduce
Steps to reproduce the behavior:
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: