diff --git a/src/libs/Navigation/AppNavigator/BaseDrawerNavigator.js b/src/libs/Navigation/AppNavigator/BaseDrawerNavigator.js index 7114959db546..96664751686b 100644 --- a/src/libs/Navigation/AppNavigator/BaseDrawerNavigator.js +++ b/src/libs/Navigation/AppNavigator/BaseDrawerNavigator.js @@ -49,6 +49,17 @@ class BaseDrawerNavigator extends Component { }; } + componentDidUpdate(prevProps) { + if (prevProps.isSmallScreenWidth === this.props.isSmallScreenWidth) { + return; + } + + // eslint-disable-next-line react/no-did-update-set-state + this.setState({ + defaultStatus: Navigation.getDefaultDrawerState(this.props.isSmallScreenWidth), + }); + } + render() { const content = (