Lottie with assets in expo

I have Lottie from expo in my project but I am unable to find out the way to use the assets in the Lottie animation.json using expo? Please, can you give any idea about this?.

Thanks in advance.

You mean use a local json file in Lottie?

Just require the json from it’s location:

    ref={animation => {this.animationTest = animation;}}
    style={{width: 35,height: 35}}

I’m using like this and it works fine.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.