UNPKG

@bounceapp/lottie

Version:

Lottie wrapper for React Native Web

29 lines 741 B
import React from "react"; import type { LottieViewRef } from "./types"; /** * ```tsx * import React from "react" * * import { LottieView } from "@bounceapp/lottie" * * import lottieAnimation from "./lottieAnimation.json" * * const App = () => ( * <LottieView * style={{ width: 100, height: 100 }} * autoPlay * loop * source={lottieAnimation} * /> * ) * * export default App * ``` * * @category Component */ declare const LottieView: React.ForwardRefExoticComponent<Pick<import("lottie-react-native").LottieViewProps, "source" | "style" | "loop" | "autoPlay"> & { onAnimationFinish?: () => void; } & React.RefAttributes<LottieViewRef>>; export { LottieView }; //# sourceMappingURL=Lottie.d.ts.map