UNPKG

@alfonmga/react-lottie-light-ts

Version:

React/Typescript wrapper for awesome Airbnb's [lottie-web](https://github.com/airbnb/lottie-web) lib.

27 lines (26 loc) 900 B
import React from 'react'; import { ReactLottieOwnProps, ReactLottieState } from './interface'; export declare class Lottie extends React.PureComponent<ReactLottieOwnProps, ReactLottieState> { private config; private containerRef; private animationItem; private defaultLottieConfig; static defaultProps: { lottieEventListeners: any[]; playingState: string; speed: number; height: string; width: string; }; componentDidMount(): void; UNSAFE_componentWillUpdate(nextProps: ReactLottieOwnProps): void; componentDidUpdate(): void; componentWillUnmount(): void; private configureAnimationItem; private setAnimationPlayingState; private triggerPlayBasedOnSegments; private addEventListeners; private removeEventListeners; private setContainerRef; render(): JSX.Element; }