Lottie for Android, iOS, and React Native v3.1.0 Release Notes

Release Date: 2019-10-15 // over 4 years ago
  • ๐Ÿ”‹ Features and Improvements

    • ๐Ÿ’ฅ Breaking Change Replace JsonReader parsing APIs with InputStream variants to prevent
      ๐Ÿ“œ exposing Lottie's copy of Moshi's json parser.
    • โž• Add the ability to catch all Lottie composition errors with setFailureListener and
      resetFailureListener (#1321).
    • โž• Add the ability to set a fallback drawable res when Lottie fails to parse a composition or
      load it from the internet. Use setFallbackResource from code orlottie_fallbackRes from xml.
    • โž• Add the ability to render opacity on the layer level rather than the shape level. View the docs
      for setApplyingOpacityToLayersEnabled for more info.
    • โž• Add the ability to use dynamic properties on text that wasn't already animated.
    • ๐ŸŽ Minor performance optimization when interpolating between colors.

    ๐Ÿ› Bugs Fixed

    • ๐Ÿ›  Fix the renderMode attribute from getting overwritten.
    • Prevent masks from either clipping edges or having thin borders pre-Pie.
    • Apply animation scale to dash pattern offsets.
    • Apply animation scale to gradient strokes.
    • Fuzzy match content types when downloading animations from the internet.
    • Prevent a StackOverflowException on KitKat.
    • Prevent resume() from resuming when system animations are disabled.
    • โšก๏ธ Prevent removeAllUpdateListeners() from removing internally used listeners.
    • ๐Ÿ›  Fix some time remap calculations.