title: How to animate the width and height of a <View /> in React Native?
body: <p>So this works for me:</p>
  <pre><code>&lt;Animated.View
    style={{
      ...styles.animatedBox,
       width: animWidth
    }}
  &gt;
    // some content...
  &lt;Animated.View&gt;
  
  Animated.spring(animWidth, {
    toValue: 400,
    speed: 10,
    bounciness: 5,
  }).start();
  </code></pre>
  <p>But I want to use the <code>useNativeDriver: true</code> option which doesn't support width and height properties. Is there a way to still animate width/height changes? Can <code>translateX</code> and <code>translateY</code> be used for this somehow?</p>