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. UsesetFallbackResource
from code orlottie_fallbackRes
from xml. - โ Add the ability to render opacity on the layer level rather than the shape level. View the docs
forsetApplyingOpacityToLayersEnabled
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.
- ๐ฅ Breaking Change Replace JsonReader parsing APIs with InputStream variants to prevent