title: How does Animated.Event work in React Native?
body: <p>I'm I understanding it correctly ? 
  Does this two set of code meant the same thing ?Does it have any difference in performance or reliability ?</p>
  
  <pre><code>&lt;ScrollView
   onScroll={Animated.event(
    [{nativeEvent: {contentOffset: {y: this.state.scrollY}}}]
  )}
  &gt;
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p>AND</p>
  
  <pre><code>handleScroll(e){
    this.setState({ scrollY : e.nativeEvent.contentOffset.y });
  }
  
  &lt;ScrollView
   onScroll={(e) =&gt; this.handleScroll(e)}
  &gt;
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p>Thanks</p>