loop({ clock: Clock, duration: Node, easing: EasingFunction: boomerang? = false, autoStart? = true }): Node

Returns an animated node that goes from 0 to 1 during the time set byduration continuously. If the boomerang option is set to true, the animation goes from 0 to 1 and then from 1 to 0 in the next cycle.

Example usage:

const progress = new Value(0);
set(progress, loop({ duration: 400, easing: Easing.linear }));