withDecay({ value: Node, velocity: Node, state: Value, offset: Node, deceleration }): Node
Decorates animated value to decay when the gesture ends.
const translateX = withDecay({value: translationX,velocity: velocityX,state: gestureState,offset: offsetX});