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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following warning message is displayed when using the style={} property in the Lottie component.
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)
Using this code logic:
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.
The text was updated successfully, but these errors were encountered: