Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make API much closer to lottie-react-native and add types #69

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

uragirii
Copy link

@uragirii uragirii commented Aug 30, 2022

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 Changing speed prop has no effect #27

  • Adds types for the projects. The types are copied from types of lottie-react-native

@uragirii uragirii changed the title Add support for remote urls Add support for remote urls and types for the project Aug 30, 2022
@uragirii uragirii marked this pull request as draft August 30, 2022 20:49
@uragirii uragirii changed the title Add support for remote urls and types for the project Make API much closer to lottie-react-native and add types Aug 31, 2022
@uragirii uragirii marked this pull request as ready for review August 31, 2022 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Changing speed prop has no effect
4 participants