UNPKG

lottie-react-native

Version:
26 lines 954 B
import React from 'react'; import { NativeSyntheticEvent, ViewProps } from 'react-native'; import type { LottieViewProps } from './LottieView.types'; import NativeLottieAnimationView from './specs/LottieAnimationViewNativeComponent'; type Props = LottieViewProps & { containerProps?: ViewProps; }; /** * View hosting the lottie animation. */ export declare class LottieView extends React.PureComponent<Props, {}> { static defaultProps: Props; _lottieAnimationViewRef: React.ElementRef<typeof NativeLottieAnimationView> | undefined; constructor(props: Props); play(startFrame?: number, endFrame?: number): void; reset(): void; pause(): void; resume(): void; onAnimationFinish: (evt: NativeSyntheticEvent<{ isCancelled: boolean; }>) => void; _captureRef(ref: React.ElementRef<typeof NativeLottieAnimationView>): void; render(): React.ReactNode; } export {}; //# sourceMappingURL=LottieView.d.ts.map