hunk.code_window:         const previous =
             entry.interpolation &&
             entry.interpolation._interpolation(entry.animation._value)
           animation = new AnimatedValue(0)
           interpolation = animation.interpolate({
             range: [0, 1],
             output: [previous !== undefined ? previous : fromValue, value],
  
hunk.labels: keep keep keep replace replace keep keep
hunk.after_edit:         if (entry.animation) {
             animation = entry.animation
             animation.setValue(0)
           } else animation = new AnimatedValue(0)
           const config = {
  
hunk.file_path: src/Spring.js
hunk.type: replace
file: import Animated from './Animated'
  import AnimatedWithChildren from './AnimatedWithChildren'
  import Interpolation from './Interpolation'
  
  export default class AnimatedInterpolation extends AnimatedWithChildren {
    constructor(parents, config) {
      super()
      this._parents = Array.isArray(parents) ? parents : [parents]
      this._interpolation = Interpolation.create(config)
    }
  
    __getValue() {
      return this._interpolation(
        ...this._parents.map(value => value.__getValue())
      )
    }
  
    __attach() {
      for (let i = 0; i < this._parents.length; ++i)
        if (this._parents[i] instanceof Animated)
          this._parents[i].__addChild(this)
    }
  
    __detach() {
      for (let i = 0; i < this._parents.length; ++i)
        if (this._parents[i] instanceof Animated)
          this._parents[i].__removeChild(this)
    }
  
    interpolate(config) {
      return new AnimatedInterpolation(this, config)
    }
  }
  
  export const interpolate = (parents, config) =>
    new AnimatedInterpolation(parents, config)
  