Shopify / react-native-skia

High-performance React Native Graphics using Skia

Home Page:https://shopify.github.io/react-native-skia

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

is it possible to pause animation from useAnimatedImageValue

wcandillon opened this issue ยท comments

Discussed in #2251

Originally posted by zoom2009 February 24, 2024
is it possible to pause animation from useAnimatedImageValue

I try to create simple game using image animation but when game is over or some how I want to create bird pause animation.
do you guy have any idea for that or I just replace gif to normal image ?

thank you

const bird = useAnimatedImageValue(require('./sprites/bird.gif'))

useEffect(() => {
   if (isGameOver) {
      // bird.pause()
   }
}, [isGameOver])
```</div>

cool! thank for your help that will help me a lot for create some simple game ๐Ÿ—ก๏ธ

๐ŸŽ‰ This issue has been resolved in version 1.2.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€