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

Failed prop type: Invalid prop style of type object supplied to Lottie, expected string #24

Open
carloscadel opened this issue Sep 12, 2019 · 4 comments

Comments

@carloscadel
Copy link

It doesn't seem to work in any way if I pass the style prop as a string, but it works if I pass the style as an object. The expected proptype is string, though; am I missing something?

@oiluis
Copy link

oiluis commented Jun 26, 2020

Were you able to fix this ? I am facing the same issue here ... @felippenardi

@betterTisen
Copy link

I had the same problem... @carloscadel

so i used div to include <Lottie /> ,like this

<div style={{ transform: "scale(0.8)" }}>
      <Lottie options={defaultOptions} height={40} width={40}  />
</div>

@salkz
Copy link

salkz commented Dec 2, 2020

Still broken, please fix. I don't want to add some !important CSS hacks to fix the auto margins.

@Fyvel
Copy link

Fyvel commented Jan 4, 2022

Hi there, I came across the same issue and proposed a fix for it #55
we'll see how it goes

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

5 participants