xxxxxxxxxx
npm i --save lottie-react-native
npm i --save lottie-ios@3.2.3
xxxxxxxxxx
import React from 'react';
import Lottie from 'lottie-react-native';
export default function Animation() {
return (
<Lottie source={require('../path/to/animation.json')} autoPlay loop />
);
}