React Native Pan Responder
<p>I need some clarification about the PanResponder API in React native. This is the simplest implementation (found in <a href="https://facebook.github.io/react-native/docs/animated.html" rel="nofollow">the Animated Docs</a>):</p>

<pre><code> class DraggableView extends React.Component {
   constructor(props) {
   super(props);
   this.state = {
     pan: new Animated.ValueXY(), // inits to zero
   };
   this.state.panResponder = PanResponder.create({
   onStartShouldSetPanResponder: () =&gt; true,
   onPanResponderMove: Animated.event([null, {
     dx: this.state.pan.x, // x,y are Animated.Value
     dy: this.state.pan.y,
   }]),
   onPanResponderRelease: () =&gt; {
     Animated.spring(
       this.state.pan,         // Auto-multiplexed
       {toValue: {x: 0, y: 0}} // Back to zero
     ).start();
   },
  });
 }
 render() {
   return (
     &lt;Animated.View
       {...this.state.panResponder.panHandlers}
       style={this.state.pan.getLayout()}&gt;
       {this.props.children}
     &lt;/Animated.View&gt;
   );
 }
}
</code></pre>

<p>focusing only on the onPanResponderMove function, I want to do something like this (following <a href="https://facebook.github.io/react-native/docs/panresponder.html" rel="nofollow">this docs</a>:</p>

<pre><code>onPanResponderMove: (e, gestureState) =&gt; {...}
</code></pre>

<p>because I need to execute multiple functions within this handler.
if I mix the two solutions:</p>

<pre><code>onPanResponderMove: (evt, gestureState) =&gt; {
    console.log(evt);
    console.log(gestureState);


    Animated.event([null, {
      dx : this.state.pan.x,
      dy : this.state.pan.y
    }]);
  },
</code></pre>

<p>it doesn't work. How can I execute multiple functions in this handler? thanks.</p>