MCPcopy Create free account
hub / github.com/ptmt/react-native-macos / start

Function start

Libraries/Animated/src/AnimatedImplementation.js:2019–2038  ·  view source on GitHub ↗
(
    animatedValue: AnimatedValue | AnimatedValueXY,
    configuration: SpringAnimationConfig,
    callback?: ?EndCallback)

Source from the content-addressed store, hash-verified

2017 config: SpringAnimationConfig,
2018): CompositeAnimation {
2019 var start = function(
2020 animatedValue: AnimatedValue | AnimatedValueXY,
2021 configuration: SpringAnimationConfig,
2022 callback?: ?EndCallback): void {
2023 callback = _combineCallbacks(callback, configuration);
2024 var singleValue: any = animatedValue;
2025 var singleConfig: any = configuration;
2026 singleValue.stopTracking();
2027 if (configuration.toValue instanceof Animated) {
2028 singleValue.track(new AnimatedTracking(
2029 singleValue,
2030 configuration.toValue,
2031 SpringAnimation,
2032 singleConfig,
2033 callback
2034 ));
2035 } else {
2036 singleValue.animate(new SpringAnimation(singleConfig), callback);
2037 }
2038 };
2039 return maybeVectorAnim(value, config, spring) || {
2040 start: function(callback?: ?EndCallback): void {
2041 start(value, config, callback);

Callers 4

startMethod · 0.70
springFunction · 0.70
timingFunction · 0.70
decayFunction · 0.70

Calls 4

_combineCallbacksFunction · 0.85
stopTrackingMethod · 0.80
trackMethod · 0.80
animateMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…