-
-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Description
Hi:)
Describe the bug
When I pass 'canvas' to the renderer
prop, TypeScript raises a type error:
The expected type comes from property 'renderer' which is declared here on type 'IntrinsicAttributes & Omit<AnimationConfigWithData<"svg">, "container" | "animationData"> & { animationData: unknown; lottieRef?: LottieRef | undefined; ... 9 more ...; onDestroy?: AnimationEventHandler | ... 1 more ... | undefined; } & Omit<...> & { ...; }'
To Reproduce
- Invoke the Lottie Component
- Pass 'canvas' to renderer prop
- Type error occurs
Expected behavior
The 'renderer' prop needs to accept 'canvas', 'html' also.
Metadata
Metadata
Assignees
Labels
No labels