title: How to get value of AnimatedInterpolation
body: <p>My question is how to retrieve the value of an AnimatedInterpolation in react-native, without calling private code.</p>
  
  <p>I create the animated value and wrap it in an interpolation like this: </p>
  
  <pre><code>  animated = new Animated.Value();
    interpolated = this.animated.interpolate({
      inputRange:[0, 1000],
      outputRange:[0, 500]
    })
  </code></pre>
  
  <p>I render the animation like this:</p>
  
  <pre><code>  &lt;Animated.View style={[{width: this.interpolated}]}/&gt;
  </code></pre>
  
  <p>And I retrieve the animated value like this:</p>
  
  <pre><code>  this.animated.stopAnimation(v =&gt; {
      console.log(v, " ", this.interpolated.__getValue());
    })
  </code></pre>
  
  <p>Runnable example <a href="https://snack.expo.io/HJjwpMniB" rel="noreferrer">here</a>.</p>
  
  <p>My problem is that <code>__getValue()</code> is a private member of AnimatedInterpolation and it gives an error when using typescript. I'm looking for a sound way to retrieve the value, similarly to how <code>this.animated.stopAnimation</code> is sounder than <code>this.animated.__getValue()</code>.</p>