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

Different animation speed on Android and iOS #222

Closed
Waltari10 opened this issue Jan 4, 2024 · 1 comment
Closed

Different animation speed on Android and iOS #222

Waltari10 opened this issue Jan 4, 2024 · 1 comment

Comments

@Waltari10
Copy link

Description

Animations runs slowly on React Native iOS, but normally everywhere else like React Native Android and web.

Provide a Repro

https://github.com/Waltari10/riveAnimSpeedBug

Source .riv/.rev file

program.riv.zip

Expected behavior

Would expect the animation to work the same way on all platforms, when using same code and same .riv file.

Screenshots

android_ios_diff_anim_speed.mov

Device & Versions (please complete the following information)

  • Device: All iOS devices including real and simulator, most recently replicated on iPhone SE (3rd generation) 17.2 simulator
  • OS: iOS 17.2
  • NPM Version: 10.1.0

Additional context

Other .riv files seem to work fine, but this program.riv has these animation speed issues. Our designer has attempted recreating the .riv file and modifying it several times to no avail.

@Waltari10
Copy link
Author

This was fixed by upgrading rive-runtime on iOS to 5.7.1. Just used patch-package to do it and required at least one swift code change I'm not so sure about if it's safe.

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

1 participant