title: How i can trigger a function after animating done?
body: <p>I am using <code>React-native-reanimated</code> and <code>react-native-gesture-handler</code>,
  I need to trigger a function after animation done, This is my my code:</p>
  
  <pre class="lang-js prettyprint-override"><code>
    let a = new Value(1);
    let onStateChange = event([
      {
        nativeEvent: ({state}) =&gt;
          block([
            cond(
              eq(state, State.END),
              set(a, runTiming(new Clock(), 1, 0)),
            ),
          ]),
      },
    ]);
  
  return &lt;TapGestureHandler onHandlerStateChange={onStateChange}&gt;
  </code></pre>
  
  <p>I need something like this :</p>
  
  <pre class="lang-js prettyprint-override"><code>      onStateChange = event =&gt; {
          if (event.nativeEvent.state === State.END) {
            alert("I'm being pressed");
          }
          return block([
            cond(
              eq(event.nativeEvent.state, State.END),
              set(a, runTiming(new Clock(), 1, 0)),
            ),
          ]);
        },
  </code></pre>
  
  <p>But not works. :/</p>