title: createMaterialTopTabNavigator how to add swipe listner so i can call a function on swipe
body: <p>Here i am using</p>
  <pre><code>import { createMaterialTopTabNavigator } from '@react-navigation/material-top-tabs';
  </code></pre>
  <p>I want to listen swipe when i change the tab by swipping the tab
  so i can handle a function which will determine current Tab screen name.
  I cannot found any Event listner for this purpose.
  Please Help</p>
  <pre><code>function swipeListner(tabName){
    setCurrentTab(tabName)
  }
  </code></pre>