title: Logout using react Native DrawerNavigator
body: <p>I am building a react-native app(<a href="https://i.stack.imgur.com/11BdM.png" rel="noreferrer">App Image</a>)which has Logout link on the Drawer Navigator.</p>
  
  <p>Code is as below </p>
  
  <pre><code> const DrawerScreen = DrawerNavigator({
      ..........
      logout: {
          screen: Component   
      },
  })
  
  export default DrawerScreen;
  </code></pre>
  
  <p>But the problem is , it's only loading the component screen. i need to call a method where i can perform Asyncstorage clear and navigate to LoginPage.</p>