expo / videoplayer

Customizable controls for Expo video
83 stars 83 forks source link

Scaling issue on Lottie #26

Closed gregtap closed 6 years ago

gregtap commented 6 years ago

expo: 2.23.1

When trying to use the mighty Watermelon.json Lottie animation as a fullscreen background the scale differs between IOS and Android.

image

        <Lottie
          ref={c => this.setBgAnim(c)}
          style={{
            position: 'absolute',
            zIndex: 1,
            left: 0,
            top: 0,
            width: '100%',
            height: '100%',
          }}
          source={require('../../../assets/Watermelon.json')}  // eslint-disable-line
        />

I tried using scaling transforms on Android only as fix but then the animation gets pixelized.