-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Fabric] Poor animation performance when animating height
property
#6854
Comments
Hi @kirillzyusko! I checked your example. The main issue here is that when an inverted I also checked why the issue is not present on iOS. It appears that |
I have seen poor performance animating padding with an inverted #5685 was initially opened for Paper, and the padding performance is also poor there when using an inverted |
@bartlomiejbloniarz interesting! I will try to specify @mhoran yes, I also noticed that animating padding/height properties is not perfectly synchronized on Paper (you can even watch the attached videos in this issue frame by frame). But I'm just curios - is it possible to make @bartlomiejbloniarz tagging you too, since maybe you know the answer on this question 😊 |
I do see delays on iOS with padding when using an My guess is that the system is already overloaded with rendering the I don't have much experience with React Native on Android -- I'm primarily using React Native on iOS. (Didn't mean to hijack your report, but just wanted to make sure it's known that this seems to be an issue on all platforms, and is particularly worse on Fabric.) |
Yes, this approach is quite limited (while it works very smooth it still has too many limitations).
Here is an example how it works in ScreenRecording_01-16-2025.10-56-25.AM_1.MP4@mhoran Can you share your video with delays you are talking about? |
Here is an example of jittery animated padding on Paper: keyboard-controller-paper.mp4And Fabric: keyboard-controller-fabric.mp4In practice, the Fabric animation is even worse, but is dependent on the content in the |
Description
Whenever I try to animate
height
property I get a very poor animation performance:animation-smooth.mp4
animation-fps-drop.mp4
It's really easy to notice on Android (I assume on iOS it may be laggy as well, but visually on iOS animation looks much better than on Android).
The same code on paper works well. Any help is highly appreciated! ❤️ 🙏
Steps to reproduce
Chat FlatList
screenSnack or a link to a repository
https://github.com/kirillzyusko/react-native-keyboard-controller/tree/main/FabricExample/src/screens/Examples/ReanimatedChatFlatList
Reanimated version
3.16.1
React Native version
0.76.2
Platforms
Android
JavaScript runtime
Hermes
Workflow
React Native
Architecture
Fabric (New Architecture)
Build type
Debug app & dev bundle
Device
Real device
Device model
Pixel 7 Pro
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: