-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Extremely slow Android animation #1006
Comments
Have you found a solution here @israelidanny ? I also noticed that. |
Any solutions? |
Hi dear maintainers @emilioicai @matinzd @lelandrichardson |
Have you tried this animation on a native app as well? Install Lottie Files app and try the animation there and see if that is still slow. If it's slow there as well, we cannot do anything on React Native side. The you can open issue in https://github.com/airbnb/lottie-android Checkout this section as well: |
i can't fix only way to fix is reduce size in lottie file on after effect or using |
Hi guys. |
Closing since there have been no more responses. |
@TheRogue76 issue still exists. the small lottie animation itself makes the app slow/lag |
Yeah, there's nothing about this that's completed. Lottie is practically unusable on Android |
Yes i see any solution @etodanik |
Ok. What did you guys try? What were the results? Did you try dotLottie? Loading the animation asset on the native side? I need responses and data otherwise there is very little i can help with |
@TheRogue76 I have the same issue on Android, how can I use dotlottie with react native? It seems like it works only on native side, isn't it? |
In order to work with dotLottie, all you need to do is transform your JSON animation to dotLottie using a tool like https://lottiefiles.com/tools/lottie-to-dotlottie or https://iconscout.com/converter/lottie-json-to-dotlottie, and then making one small modification to your metro file: (instructions here). You don't need change any other piece of code on your JS or Native side after that. The import would look the same as it did with JSON (with a different file extension) and everything else would be the same. No need to do anything on the Native side. |
Unfortunately, I cannot get it working on Android (on iOS, dotlottie files worked for me). I just created a minimal reproducible example and opened up an issue. |
Description
Expo 48 Android animation is MUCH, MUCH slower than iOS (iOS is mega smooth, Android is like, 5-6 FPS)
This is the JSON that I'm using as an animation (it reports a fully compatible matrix on LottieFiles):
hero.json.zip
Edit:
The Android device itself is quite capable. It's OnePlus 7 Pro, and runs quite heavy 3D games without any issues. So the GPU should handle this?
The text was updated successfully, but these errors were encountered: