The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

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

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

3:57
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.
Watch this lesson now
Avatar
egghead.io

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.

Avatar
peekpic

getting 404 on the github link

Avatar
Jason Brown

Apologies for that, I accidentally named it animated_decay instead of just decay.
I've fixed the link and it should have the proper code.

In reply to peekpic
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?