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

Library not working with react native 0.71 #1017

Closed
Daggron opened this issue Apr 26, 2023 · 3 comments
Closed

Library not working with react native 0.71 #1017

Daggron opened this issue Apr 26, 2023 · 3 comments

Comments

@Daggron
Copy link

Daggron commented Apr 26, 2023

Description

We have recently upgraded to React native 0.71.7 in our application, we use lottie to power some animation on our app.
While we were using react-native version 0.66.5 it was working as expected, but now with the upgrade it is breaking and animation is not happening. We tried upgrading lottie to and rc version v6 which is working fine, but since its an rc version we can't use it in production.

And rc version is causing alignment issues (Refer to the screen shot shared below)

image

Lottie JSON File

Steps to Reproduce

  1. Upgrade React native to 0.71.7
  2. have a lottie-react-native version "5.1.5", and lottie-ios version "3.4.1",

Expected behavior: [What you expected to happen]

  • animation should happen correctly

Actual behavior: [What actually happened]

  • animation not happening and getting stuck

Versions

"react-native": "0.71.7",
"lottie-ios": "3.4.1",
"lottie-react-native": "5.1.5",

@TomCorvus
Copy link

Not sure if this will solve your issue, but lottie-react-native 5.1.5 doesn't need to specify lottie-ios version.

For lottie-react-native <= 5.1.4 you also need to install lottie-ios@3.4.1 package:
yarn add lottie-ios@3.4.1

but for higher version, just:

Install lottie-react-native (latest):
yarn add lottie-react-native

lottie-react-native 5.1.5 use lottie-ios ^3.4.0 so 3.5.0 version which is the latest 3 minor version.

@Brittognanaraj
Copy link

Please help about this issue to #1016

@Daggron
Copy link
Author

Daggron commented Apr 28, 2023

Not sure if this will solve your issue, but lottie-react-native 5.1.5 doesn't need to specify lottie-ios version.

For lottie-react-native <= 5.1.4 you also need to install lottie-ios@3.4.1 package:
yarn add lottie-ios@3.4.1

but for higher version, just:

Install lottie-react-native (latest):
yarn add lottie-react-native

lottie-react-native 5.1.5 use lottie-ios ^3.4.0 so 3.5.0 version which is the latest 3 minor version.

Holy smokes, this works, Thanks a ton man

@Daggron Daggron closed this as completed Apr 28, 2023
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

No branches or pull requests

3 participants