UNPKG

@bounceapp/lottie

Version:

Lottie wrapper for React Native Web

18 lines (15 loc) 364 B
import type { LottieViewProps as RNLottieViewProps } from "lottie-react-native" /** * The props type for {@link LottieView}. */ export type LottieViewProps = Pick< RNLottieViewProps, "source" | "style" | "loop" | "autoPlay" > & { onAnimationFinish?: () => void } export type LottieViewRef = { play: () => void pause: () => void reset: () => void }