HomeUsageComponents
SVG
parsePathgetPointAtLengthinterpolatePathbInterpolatePathgetLengthAtX
Math
incdectoRadtoDegminmaxclampbetweenapproximatesatan2cubicBezier
CoordinatesString
Array
getfindcontains
Transitions
Animations
useValuesuseDifftimingloopdelaydecayspringbInterpolateinterpolateColorbInterpolateColorsnapPointmoving
Transformations
translateZtransformOrigin
Gestures
onScrollonGestureEventpanGestureHandlerhorizontalPanGestureHandlerverticalPanGestureHandlerwithSpringwithDecaywithOffsetpreserveMultiplicativeOffset

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
});