* Stops any running animation or tracking. `callback` is invoked with the * final value after stopping the animation, which is useful for updating * state to match the animation position with layout.
(callback?: ?(value: number) => void)
| 142 | * state to match the animation position with layout. |
| 143 | */ |
| 144 | stopAnimation(callback?: ?(value: number) => void): void { |
| 145 | this.stopTracking(); |
| 146 | this._animation && this._animation.stop(); |
| 147 | this._animation = null; |
| 148 | callback && callback(this.__getValue()); |
| 149 | } |
| 150 | |
| 151 | /** |
| 152 | * Interpolates the value before updating the property, e.g. mapping 0-1 to |
no test coverage detected