1×
Become a member
to unlock all features
Autoplay

    Create a Draggable Card with React Native Pan Responder, and Animated.decay

    react-nativeReact Native
    0.35 - 0.39
    reactReact
    ^15.0.0

    In this lesson we'll create a PanResponder to allow us to drag a card around the screen. We'll use Animated.event to automatically set the values of our Animated.Value and when the card is released we'll use Animated.decay to decelerate it to a stop.