Module Value.Spring
Provides a simple spring physics model.
Example
let animatedValue = Animated.Value.create(0.0);
let animation = Animated.spring(
~value=animatedValue,
~toValue=`raw(1.0),
~bounciness=5.0,
(),
);
Animated.start(animation, ());
Check React Native documentation for details.
let animate: value:value(regular) => toValue:[ `raw(float) | `animated(value(regular)) ] => ?restDisplacementThreshold:float => ?overshootClamping:bool => ?restSpeedThreshold:float => ?velocity:float => ?bounciness:float => ?speed:float => ?tension:float => ?friction:float => ?stiffness:float => ?mass:float => ?damping:float => ?isInteraction:bool => ?useNativeDriver:bool => ?onComplete:Animation.endCallback => ?iterations:int => unit => Animation.t;