1import React from 'react';
2import Lottie from 'react-lottie';
3import animationData from './lotties/kiss-of-the-heart';
4
5export default function App() {
6 const defaultOptions = {
7 loop: true,
8 autoplay: true,
9 animationData: animationData,
10 rendererSettings: {
11 preserveAspectRatio: "xMidYMid slice"
12 }
13 };
14
15 return (
16 <div>
17 <Lottie
18 options={defaultOptions}
19 height={400}
20 width={400}
21 />
22 </div>
23 );
24}