I'm using your react-native-popup-menu for logout button. when button clicked the authentication deleted and screen will go to login . but the menu still left.
How to close this menu when screen switched?
<Menu>
<MenuTrigger>
<Icon
name='more-vert'
color='#fff'
/>
</MenuTrigger>
<MenuOptions>
<MenuOption value={1}>
<Text onPress={() => {
this.props.onLogout()
}}>logout</Text>
</MenuOption>
</MenuOptions>
</Menu>
Originally asked by bexoss on react-native-popup-menu GitHub.