Lottie-android: lottie animation doesn't show up in react native android build .

Created on 7 Feb 2018  路  1Comment  路  Source: airbnb/lottie-android

react-native : "0.48.3"
lottie-react-native : "^2.3.2"

when ever i run my project, it shows blank page . no animation.
integrated successfully , linked with android studio .
have put my json file into assets folder but no luck

here is my code snippet

import LottieView from 'lottie-react-native';

componentDidMount(){ this.animation.play() }

render(){
return(
ref={animation => {
this.animation = animation;
}}
source="{require('../../../../anim/success.json')}"
/>

)

}

Most helpful comment

Please file this on airbnb/lottie-react-native.
There are a few paths in docs that I need to update. Check https://github.com/airbnb/lottie-react-native/issues/242 for more info.

>All comments

Please file this on airbnb/lottie-react-native.
There are a few paths in docs that I need to update. Check https://github.com/airbnb/lottie-react-native/issues/242 for more info.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Qamar4P picture Qamar4P  路  3Comments

Nabeel-khalid picture Nabeel-khalid  路  4Comments

AndroidDeveloperLB picture AndroidDeveloperLB  路  4Comments

11hhlin1 picture 11hhlin1  路  3Comments

Anmolk22 picture Anmolk22  路  3Comments