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.