Module AnimatedRe-BsReactNative.Animation

Configured animation as created by calling timing, spring or decay.

type t;

Type of the animation.

type endResult = Js.t({. finished: bool, });

If the animation finished running normally, the completion callback will be invoked with finished true. If the animation is done because stop() was called on it before it could finish (e.g. because it was interrupted by a gesture or another animation), then it will receive finished false.

type endCallback = endResult => unit;

start takes this callback that will be called when the animation is done. See endResult for arguments.

let stop: t => unit;

Stops an animation

let start: t => ?⁠callback:endCallback => unit => unit;

Starts an animation

let reset: t => unit;

Resets an animation