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

onLoopEnd is not called in iOS but is called on android #248

Open
kiranjd8 opened this issue May 31, 2024 · 2 comments
Open

onLoopEnd is not called in iOS but is called on android #248

kiranjd8 opened this issue May 31, 2024 · 2 comments

Comments

@kiranjd8
Copy link

Description

For the same .riv file, onLoopEnd is called properly on android it is not called on iOS.
Use case is to store when that animation is shown to the user after animation is played and not animate again

Provide a Repro

            <Rive
              ref={animationRef}
              style={{ width: 48, height: 48 }}
              resourceName={'offers_tab'}
              onLoopEnd={onAnimationEnd}
            />

Source .riv/.rev file

Offer's tab (R) (1).rev.zip

Expected behaviour

Trigger onLoopEnd callback similar to android

Device & Versions (please complete the following information)

  • Device: iPhone 11
  • OS: 17.4.1
  • NPM Version: 10.2.4
@BrandonEscamilla
Copy link

BrandonEscamilla commented Aug 10, 2024

Hi! Did you solve it? @kiranjd8

@kiranjd8
Copy link
Author

@BrandonEscamilla Tried the examples from Rive website but the same callback is not getting triggered as in the android. Worked around it on iOS by using onPause and using onLoopEnd on android

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

2 participants