vikrantnegi / react-native-animated-loader

:lollipop: A React Native Loader Component which uses Airbnb's Lottie for beautiful loader animations.
https://medium.com/better-programming/how-to-create-a-beautifully-animated-loader-in-react-native-21da37a8f6b0
MIT License
206 stars 101 forks source link

Animation not playing fully through #12

Open lucidprojects opened 2 years ago

lucidprojects commented 2 years ago

I've created my own Lottie file which works as desired when tested on lottie files preview -https://lottiefiles.com/share/fpzibff0

But for some reason when I call it within my code it only plays part of the animation.

I read a few issues related to total size of the json file but mine is on 30kb

code

<AnimatedLoader
        visible={visible}
        overlayColor="rgba(255,255,255,0.75)"
        source={require("../../assets/logo_drop_loopout.json")}
        animationStyle={styles.lottie}
        speed={1.5}
        >
</AnimatedLoader>

Versions:

react-native: 0.63.2 
"lottie-ios": "3.1.8",
"lottie-react-native": "4.0.3",
"react-native-animated-loader": "^0.0.9",

desired full animation, where it spins 3 times after

https://user-images.githubusercontent.com/50380056/139960385-838b775c-cff1-442c-b582-89d04b1d9e59.mov

vs partial animation

https://user-images.githubusercontent.com/50380056/139960392-5659fac2-ffec-4438-886e-0cac8b4a65a3.mov

Any help appreciated.

lucidprojects commented 2 years ago

For anyone that ends up here, per this reddit It looks like Lottiefiles don't handle After Effects expressions well.

Sure enough, taking out the expressions fixes the issue. Kind of a bummer but at least it is working.

Also, useful link for AE features supported

Cheers ✌️