You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a heart icon from react-native-vector-icons. When tapped on, I want it to:
Animate the fontSize from 35 to 50
When the fontSize animation finishes animating, I want the heart to "pump" a few times. I'm using the built-in pulse animation for this.
I have it working, but it's a bit clunky. I'm using a fontSize transition to scale the icon up in size. Then I call the pulse 4 times in a row via Promise chain. Here's the code:
Is there better way of calling the imperative pulse animation after the fontSize transition has completed, rather than relying on a setTimeout() (basically, a guess)?
Is there a proper way of iterating the imperative pulse animation, rather than calling it with the long Promise chain?
The text was updated successfully, but these errors were encountered:
I have a heart icon from react-native-vector-icons. When tapped on, I want it to:
pulse
animation for this.I have it working, but it's a bit clunky. I'm using a
fontSize
transition to scale the icon up in size. Then I call thepulse
4 times in a row via Promise chain. Here's the code:Two questions:
fontSize
transition has completed, rather than relying on a setTimeout() (basically, a guess)?pulse
animation, rather than calling it with the long Promise chain?The text was updated successfully, but these errors were encountered: