1×
Become a member
to unlock all features
Autoplay

    Bounce a Heart Shaped Button in React Native on Press

    react-nativeReact Native
    0.38.0
    reactReact
    ^15.4.0

    In this lesson we'll create a heart shaped like button that bounces when it is pressed. This technique is a great way to show feedback for when a user likes a piece of content. We'll Animated.spring to create a realistic feeling spring animation with the use of friction. We'll also use interpolate to our animated value to scale our heart up and down to make it look like it's bouncing.