This PR tries to make the API much more closer to lottie-react-native package as it is supposed to be used alongside that. Following things are added
support for loading lottie files from a remote url. The source prop accepts {uri: <remote url string>}. This support was previously missing. We first check if the remote url is provided, if not fallback to using object as animation data.
Add support for animation speed. This fixes #27
Adds types for the projects. The types are copied from types of lottie-react-native
This PR tries to make the API much more closer to
lottie-react-native
package as it is supposed to be used alongside that. Following things are addedsource
prop accepts{uri: <remote url string>}
. This support was previously missing. We first check if the remote url is provided, if not fallback to using object as animation data.Add support for animation speed. This fixes #27
lottie-react-native