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

Incorrect expected style types #159

Open
vlinayoDxC opened this issue Mar 8, 2024 · 1 comment
Open

Incorrect expected style types #159

vlinayoDxC opened this issue Mar 8, 2024 · 1 comment

Comments

@vlinayoDxC
Copy link

The following warning message is displayed when using the style={} property in the Lottie component.

image

Even thought it´s getting the correct styling at the component level, we see the warning because of the configuration used on the propTypes (or that´s what we believe is the reason)

image

Using this code logic:
image

So basically it does work but with a bad warning that should be fixed.
We can see the propTypes used at the moment in the file https://github.com/chenqingspring/react-lottie/blob/master/src/index.js
are expecting a string type of value in the styles but they are actually being used as an object.

image

@vlasscontreras
Copy link

I have the same issue starting in v1.2.4. I opened #161 to fix it.

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

No branches or pull requests

2 participants