Lottie for Android, iOS, and React Native v2.5.0 Release Notes

  • ๐Ÿ”‹ Features and Improvements

    • โž• Added the ability to dynamically change properties at runtime. See docs for more info. This feature removed the existing APIs for ๐Ÿ“„ changing the color dynamically with a color filter. Refer to the docs for migration info from existing ColorFilter APIs.
    • โž• Added a setRepeatMode and setRepeatCount (Thanks Fabio Nuno!).
    • Completely overhauled json deserialization. Deserializing a composition takes half as long and โœ… can deserialize much larger json files (tested 50mb) without ooming.
    • Overhauled the underlying time animator. It now:
      • More accurately handles setFrame/getFrame/minFrame/maxFrame APIs. There were cases where they could be off by one before.
      • Renders at the fps specified by After Effects.
      • Added docs and clearer rules around animatedValue and animatedFraction in animator callbacks.
    • ๐Ÿšš API to remove all animator listeners.
    • Adhere to the Animatable interface.
    • โฌ†๏ธ Bumped the minSdk from 14 to 16 to use Choreographer in the animator mentioned above. ### ๐Ÿ› Bugs Fixed
    • ๐Ÿ›  Fixed a bug that made it difficult to chain animations in onAnimationEnd callbacks.
    • ๐Ÿ›  Fixed a regression with unknown masks modes.
    • ๐Ÿ›  Fixed a crash trying to recycle a null bitmap.
    • ๐Ÿ›  Fixed a bug when an opacity animation time interpolator was >1.