@eva/react-eva-lottie
Version:
React EVA是一个让开发同学能够在React技术体系下,利用EVA JS的游戏研发能力,开发动画、游戏类场景的框架。它可以让开发同学用熟悉的JSX和Hooks语法编写动画、游戏场景的代码。
27 lines (26 loc) • 944 B
TypeScript
/// <reference types="react" />
import { EvaRefObject } from '@eva/react-eva';
import { Lottie as LottieComponent } from '@eva/plugin-renderer-lottie';
export declare class LottieRefObject extends EvaRefObject {
constructor(_ref: any);
play(params?: any[], options?: {
repeats: number;
}): this;
onTap(name: any, fn: any): this;
on(eventName: any, fn: any): this;
off(eventName: any, fn: any): this;
once(eventName: any, fn: any): this;
}
export declare function useLottieResource({ name, json }: {
name?: any;
json: any;
}): string;
export declare function useLottie({ resource, width, height, autoPlay, repeats }: {
resource: any;
width: any;
height: any;
autoPlay: any;
repeats: any;
}): LottieComponent;
declare const Lottie: import("react").ForwardRefExoticComponent<Pick<Record<string, any>, string> & import("react").RefAttributes<LottieRefObject>>;
export default Lottie;