Lottie-react-native: Animation not showing getting warning "request key of value that is not an object"

Created on 27 Nov 2017  路  3Comments  路  Source: lottie-react-native/lottie-react-native

Most helpful comment

I got the same error when I left out the style attribute with a width and height on the Lottie component:

This works:

<Lottie
  style={{
    width: 50,
    height: 50
  }}
  loop
  source={LottieAnimation}
  ref={ref => { this.animation = ref }}
/>

This doesn't:

<Lottie
  loop
  source={LottieAnimation}
  ref={ref => { this.animation = ref }}
/>

schermafbeelding 2018-02-22 om 10 25 43

All 3 comments

There isn't enough information to debug here. It's possible that this warning doesn't come from lottie as well. If you could add more repro steps, please reopen.

I got the same error when I left out the style attribute with a width and height on the Lottie component:

This works:

<Lottie
  style={{
    width: 50,
    height: 50
  }}
  loop
  source={LottieAnimation}
  ref={ref => { this.animation = ref }}
/>

This doesn't:

<Lottie
  loop
  source={LottieAnimation}
  ref={ref => { this.animation = ref }}
/>

schermafbeelding 2018-02-22 om 10 25 43

This seems to be related to specific assets. Is also happening to us.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

amoljain picture amoljain  路  5Comments

nok0620 picture nok0620  路  3Comments

turooblanco picture turooblanco  路  5Comments

ASkyBig picture ASkyBig  路  4Comments

snydercreative picture snydercreative  路  4Comments