Skip to content

Conversation

@yinjun322
Copy link

@yinjun322 yinjun322 commented Dec 26, 2024

Hi,

I added a props called "assetsPath" to enhance assets path configuration

Thanks in advance and do not hesitate to contact me if needed :)

See you, and thanks again for your library ;)

/** Lottie `AnimationItem` Instance */
ref?: React.Ref<AnimationItem | undefined>
} & ({ path?: string } | { animationData?: { ['default']: object } | object })
} & ({ path?: string } | { assetsPath?: string } | { animationData?: { ['default']: object } | object })
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is correct typing. Doesnt this mean that you cannot specify both assetPath and path/animationData together? Is that intented?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants