-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
KeyboardAwareScrollView on android is not as smooth as ios #719
Comments
This code in RenderForm
|
Hi @caothuyen This is how animation looks on my Pixel 7 Pro (Android 15) - tested in example app: telegram-cloud-document-2-5368776602526179445.mp4I don't have any missing frames - would you mind to create a reproducible example (including all styles) so that I can copy/paste it into my example app? |
Here is the example source code: https://github.com/caothuyen/example.git the page I recorded in the video is located at |
Thanks @caothuyen for a reproduction! Checking it today 👀 |
@caothuyen getting this: > Task :expo-updates:kspDebugKotlin FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':expo-updates:kspDebugKotlin'.
> java.io.StreamCorruptedException: unexpected EOF in middle of data block When try to build the app. Any ideas why?.. |
Code to run this example on Android: react-native-keyboard-controller/example/src/screens/Examples/ReanimatedChatFlatList/index.tsx Line 46 in 0ce68ed
The actual result is very choppy and jerky up and down on Android, very flowy on IOS. "react-native": "0.76.2". |
@shuo-hiwintech which Android version do you use? Which RN architecture do you use? Can you attach a video? Is it reproducible in emulator? telegram-cloud-document-2-5426846321304701690.mp4This is how it looks on my Pixel 7 Pro (Android 15, REA 3.16.1, paper/old architecture) 👀 |
Thanks for the quick response, I'm using your library in another project with a new non-RN architecture and it's running great. The status of my new project: "react-native": "0.76.2", yes I'm using the new RN architecture. Android real machine information: Screenrecorder-2024-12-24-19-21-46-176.mp4(Shaky video recording, recorded at 90 fps) |
My code:
|
Unfortunately, it's not possible to replicate this on an android emulator, I suspect it should be possible to replicate it on a real android machine. : ( |
@shuo-hiwintech well, I think I encounter a similar issue, when performance on a new architecture is not as great as on old architecture. The only one thing that I discovered is that only non-UI props (such as Maybe it's because of not very optimized ShadowTree traversal on reanimated side (but honestly I don't know a root cause, so it's only my guesses). Let me run fabric example on my devices and get back to you! |
I opened an issue in reanimated: software-mansion/react-native-reanimated#6854 I don't think I can fix it in |
Thank you for your conscientiousness and let's hope that good things will come~ |
Describe the bug
When the keyboard opens, the content below is pushed up, not as smoothly as on iOS.
Code snippet
Expected behavior
On android can be as smooth as ios
Screenshots
Screen.Recording.2024-12-04.at.09.46.42.mov
Screen.Recording.2024-12-04.at.09.47.07.mov
I tested on real device and production environment but still not effective
The text was updated successfully, but these errors were encountered: