Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add assetsPath prop to enhance assets path configuration #134

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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 ;)

@@ -28,7 +28,7 @@ declare module 'react-lottie-player' {

/** 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