interface CompositeAnimation {
    reset: (() => void);
    start: ((callback?) => void);
    stop: (() => void);
}

Properties

Properties

reset: (() => void)

Stops any running animation and resets the value to its original.

Type declaration

    • (): void
    • Returns void

start: ((callback?) => void)

Animations are started by calling start() on your animation. start() takes a completion callback that will be called when the animation is done or when the animation is done because stop() was called on it before it could finish.

Type declaration

    • (callback?): void
    • Parameters

      • Optional callback: EndCallback

        Optional function that will be called after the animation finished running normally or when the animation is done because stop() was called on it before it could finish

      Returns void

Example

Animated.timing({}).start(({ finished }) => {
// completion callback
});
stop: (() => void)

Stops any running animation.

Type declaration

    • (): void
    • Returns void