Lottie-react-native: Lottie doesn't work on iOS

Created on 17 Aug 2018  路  2Comments  路  Source: lottie-react-native/lottie-react-native

Description

I can't see the animation with the version 0.56.0 of React Native, only a blank screen

Steps to Reproduce

render() {
  return (
    <View style={Style.container}>
        <LottieView
          source={require('./animation.json')}
          autoPlay={true}
          loop={true}
          style={{ backgroundColor: 'white', width: 200, height: 200 }}
        />
    </View>
  )
}

Expected behavior: Execute the animation and show something

Actual behavior: Empty screen
screenshot

Versions

You can get this information from executing npm version.

{ MyApp: '1.0.0',
  npm: '5.6.0',
  ares: '1.10.1-DEV',
  cldr: '31.0.1',
  http_parser: '2.7.0',
  icu: '59.1',
  modules: '57',
  nghttp2: '1.25.0',
  node: '8.9.4',
  openssl: '1.0.2n',
  tz: '2017b',
  unicode: '9.0',
  uv: '1.15.0',
  v8: '6.1.534.50',
  zlib: '1.2.11' }

Most helpful comment

@emilioicai Works after add the libraries manually from Xcode

All 2 comments

did you try with other animations? also, did you try to clean up your iOS project and build again?

@emilioicai Works after add the libraries manually from Xcode

Was this page helpful?
0 / 5 - 0 ratings