nativescript-community / ui-lottie

NativeScript plugin to expose Airbnb Lottie
https://github.com/airbnb/lottie-android
Other
177 stars 57 forks source link

Added support for loading compositions from in-memory json #45

Closed itstheceo closed 5 years ago

itstheceo commented 5 years ago

Justification

Having the ability to load compositions from in-memory json is necessary when creating angular components with webpack, for example.

Added the srcMode property

This is a new non-bindable property for getting / setting the srcMode. Defaults to File which is the current behaviour, but json is also supported for using in-memory json string literals.

Note

Would be much appreciated if you could update the unreleased section in the changelog with the new version number and release date for these changes during the merge, thanks!

itstheceo commented 5 years ago

Closing this for now until I resolve the exposed enum SrcMode typings. While this works nicely within the demo, it's being difficult within an angular webpack component. Will reopen once I resolve.