performance issue on android #6712
Replies: 2 comments 1 reply
-
i found this https://github.com/bluesky-social/social-app/pull/6219/files,
|
Beta Was this translation helpful? Give feedback.
-
Hey @sssajjad007! I looked at your code and it looks good. There aren't many things you could improve. I would say that you shouldn't bother much about performance in debug. Android tends to be laggy in debug and always is a few times slower than iOS. What is more, this FPS meter is not much accurate and, if you don't feel that your app performance is low, you shouldn't care that much. To check how the app really performs, you can build the release app. You wouldn't be able to open developer settings in the release app to turn on the React Native performance monitor, so you should use the reanimated How to build release APKI would briefly describe you how you can build the release APK for testing purposes.
Why second example doesn't workThe second example you posted doesn't work because it uses layout animations, so you would have to update layout properties instead of transforms, which are non-layout properties (they never affect the layout of other components rendered on the screen). It shouldn't be faster than applying transforms to the view as you currently do. It is faster only if you have to animate layout properties, like You can add these Let me know if you have more questions! |
Beta Was this translation helpful? Give feedback.
-
Hi, i want create ripple effect with reanimted
but has performance issue on android ( ios is fine )
As you can see, there is a fps drop,
How could I fix this?
2024-11-16.19.33.25.mp4
Beta Was this translation helpful? Give feedback.
All reactions