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

Add pause at end of animation and start/end callbacks #5

Open
tomchambers2 opened this issue Feb 1, 2017 · 8 comments
Open

Add pause at end of animation and start/end callbacks #5

tomchambers2 opened this issue Feb 1, 2017 · 8 comments

Comments

@tomchambers2
Copy link

I'd like to be able to have the animation pause. So the animation will play all its frames and then pause for a defined period of time. Would also be useful to have a callback in order to sync something else happening in the application, in my case playing a sound synchronised with the animation.

Not great with Obj C, but happy to have a go with a few pointers as to how this could be achieved.

@rad182
Copy link

rad182 commented Jun 12, 2017

+1

@dfc747
Copy link

dfc747 commented Aug 17, 2017

I'm not sure if this helps but you can edit RCTImageSequenceView.java , and change animationDrawable.setOneShot(false) to true and it will play one time.

@tijsluitse
Copy link

tijsluitse commented Sep 13, 2018

Is there already a solution to play and pause the animation? Or did you find a fix @tomchambers2 ?

@skyliwq
Copy link

skyliwq commented Oct 6, 2018

+1

1 similar comment
@aiynmm
Copy link

aiynmm commented Oct 30, 2018

+1

@vpsantos
Copy link

vpsantos commented Jun 6, 2019

Hello, is there any way to play/stop the animation via code?

@nester999
Copy link

+1 to this as well

@sleep9
Copy link

sleep9 commented Jul 15, 2024

+1

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

9 participants