📅  最后修改于: 2022-03-11 14:56:35.499000             🧑  作者: Mango
import React from 'react'import Lottie from 'react-lottie';import * as animationData from './pinjump.json' export default class LottieControl extends React.Component { constructor(props) { super(props); this.state = {isStopped: false, isPaused: false}; } render() { const buttonStyle = { display: 'block', margin: '10px auto' }; const defaultOptions = { loop: true, autoplay: true, animationData: animationData, rendererSettings: { preserveAspectRatio: 'xMidYMid slice' } }; return }}