Skip to content
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

Animation flickering & Some animations not even visible on Android #1211

Open
Lekhrajk opened this issue Apr 1, 2024 · 5 comments
Open

Animation flickering & Some animations not even visible on Android #1211

Lekhrajk opened this issue Apr 1, 2024 · 5 comments

Comments

@Lekhrajk
Copy link

Lekhrajk commented Apr 1, 2024

Description

I just installed latest version from npm & downloaded some .json lottie animations from lottiefiles but out of 7-8 lottiefiles only 1 is working fine rest showing either glitch in animation or not showing at all.

Expected behavior:
It should display animation as showing in lottiefiles website

Actual behavior:
Please check this screen recording.
https://github.com/lottie-react-native/lottie-react-native/assets/42565741/7008f95e-dfb8-46b9-9231-edda246bda76

Minimal reproduction

I just followed what is mentioned on the npm package and added some height and width

This is how i am using it

import LottieView from 'lottie-react-native'; <LottieView source={animFile} autoPlay loop={true} style={{ width: "100%", height: 300, alignSelf: "center", ...style }} />

React Native Environment

"system" : "Mac OS m2 pro",

"device": "Android 13 moto edge neo 40" and "Google pixel 6"
"react": "18.2.0",
"react-native": "0.73.6",

Lottie Version

"lottie-react-native": "^6.7.0",

@Lekhrajk
Copy link
Author

Lekhrajk commented Apr 3, 2024

Could anyone please help or help me what is the reason behind it. ?

@TheRogue76
Copy link
Collaborator

Most probably the animation you are using is using unsupported effects. Read more here: https://github.com/lottie-react-native/lottie-react-native?tab=readme-ov-file#troubleshooting
You can also check the logcat errors, it usually says as much if it is using unsupported effects

@kienpro307
Copy link

Most probably the animation you are using is using unsupported effects. Read more here: https://github.com/lottie-react-native/lottie-react-native?tab=readme-ov-file#troubleshooting You can also check the logcat errors, it usually says as much if it is using unsupported effects

is there any issue that helps me use those animations despite of using unsupported effects?

@TheRogue76
Copy link
Collaborator

Most probably the animation you are using is using unsupported effects. Read more here: https://github.com/lottie-react-native/lottie-react-native?tab=readme-ov-file#troubleshooting You can also check the logcat errors, it usually says as much if it is using unsupported effects

is there any issue that helps me use those animations despite of using unsupported effects?

No. If the effect is unsupported in the platform, it is simply not going to work.

@Samych02
Copy link

Samych02 commented Apr 28, 2024

I run into the same issue. It might seems strange, but what fixed this problem for me is unminifying and formatting the lottie file (which is in json format).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants