(
animatedValue: AnimatedValue | AnimatedValueXY,
configuration: SpringAnimationConfig,
callback?: ?EndCallback)
| 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); |
no test coverage detected
searching dependent graphs…