MCPcopy
hub / github.com/animatedjs/animated / setValue

Method setValue

src/AnimatedValue.js:94–100  ·  view source on GitHub ↗

* Directly set the value. This will stop any animations running on the value * and update all the bound properties.

(value: number)

Source from the content-addressed store, hash-verified

92 * and update all the bound properties.
93 */
94 setValue(value: number): void {
95 if (this._animation) {
96 this._animation.stop();
97 this._animation = null;
98 }
99 this._updateValue(value);
100 }
101
102 /**
103 * Sets an offset that is applied on top of whatever value is set, whether via

Callers 2

traverseFunction · 0.45
Animated-test.jsFile · 0.45

Calls 2

_updateValueMethod · 0.95
stopMethod · 0.45

Tested by

no test coverage detected