Skip to content

Instantly share code, notes, and snippets.

@amandeepmittal
Created March 8, 2018 10:41
Show Gist options
  • Save amandeepmittal/0daec56a4527b65e18aa4ef7f4d2aee4 to your computer and use it in GitHub Desktop.
Save amandeepmittal/0daec56a4527b65e18aa4ef7f4d2aee4 to your computer and use it in GitHub Desktop.
render() {
return (
<View style={styles.container}>
<View style={styles.animationContainer}>
{this.state.animation && (
<Lottie
ref={animation => {
this.animation = animation;
}}
style={styles.loadingAnimation}
source={this.state.animation}
/>
)}
</View>
</View>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment