react-native-image-sequence icon indicating copy to clipboard operation
react-native-image-sequence copied to clipboard

Add pause at end of animation and start/end callbacks

Open tomchambers2 opened this issue 8 years ago • 8 comments

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.

tomchambers2 avatar Feb 01 '17 23:02 tomchambers2

+1

rad182 avatar Jun 12 '17 16:06 rad182

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.

dfc747 avatar Aug 17 '17 10:08 dfc747

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

tijsluitse avatar Sep 13 '18 10:09 tijsluitse

+1

skyliwq avatar Oct 06 '18 02:10 skyliwq

+1

aiynmm avatar Oct 30 '18 06:10 aiynmm

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

vpsantos avatar Jun 06 '19 04:06 vpsantos

+1 to this as well

nester999 avatar Mar 11 '23 00:03 nester999

+1

sleep9 avatar Jul 15 '24 22:07 sleep9