Lottie for Android, iOS, and React Native v2.6.0 Release Notes
-
๐ Features and Improvements
- โ Added support for loading an image from a url directly. See LottieCompositionFactory for more information.
- โ Added support for loading an animation from a zip file that contains the json as well as images.
- URLs supports zip files as well as json files.
- ๐ Deprecated
LottieComposition.Factory
in favor of LottieCompositionFactory.- The new factory methods make it easier to catch exceptions by separating out success and failure handlers. Previously, catching exceptions was impossible and would crash your app.
- All APIs now have a mandatory cacheKey that uses an LRU cache rather than a strong/weak ref cache.
- If the same animation is fetched multiple times in parallel, the same task will be returned. This will be massively helpful for animations that are loaded in a list.
- InputStreams are now always closed even if you use the old APIs. Please be aware if you were using this while upgrading.
- โ Added support for miter limit.
- ๐ฑ [Sample App] Added the ability to load a file from assets. ### ๐ Bugs Fixed
- ๐ Fixed a timing issue when there was time stretch on a masked layer.
- ๐ Fixed support for Android P.
- ๐ Make a best-effort attempt at rendering shapes in which the number of vertices changes rather than crashing.
- ๐ Fixed a bug in which the inner radius animation of a polystar wouldn't update.