diff --git a/src/views/Drawer/DrawerView.js b/src/views/Drawer/DrawerView.js index a8f86a3c..b36e736b 100644 --- a/src/views/Drawer/DrawerView.js +++ b/src/views/Drawer/DrawerView.js @@ -38,12 +38,18 @@ export default class DrawerView extends React.PureComponent { _handleDrawerOpen = () => { const { navigation } = this.props; - navigation.dispatch({ type: NavigationActions.OPEN_DRAWER }); + const { isDrawerOpen } = navigation.state; + if (!isDrawerOpen) { + navigation.dispatch({ type: NavigationActions.OPEN_DRAWER }); + } }; _handleDrawerClose = () => { const { navigation } = this.props; - navigation.dispatch({ type: NavigationActions.CLOSE_DRAWER }); + const { isDrawerOpen } = navigation.state; + if (isDrawerOpen) { + navigation.dispatch({ type: NavigationActions.CLOSE_DRAWER }); + } }; _updateWidth = () => {