I am building a react-native app([App Image](https://i.stack.imgur.com/11BdM.png))which has Logout link on the Drawer Navigator.

Code is as below 

```
 const DrawerScreen = DrawerNavigator({
    ..........
    logout: {
        screen: Component   
    },
})

export default DrawerScreen;

```

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.