This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add Redux action setDrawerOpen to set a boolean Redux variable (drawerOpen). | |
In your contentComponent update the Redux store when drawer open/close is detected: | |
componentDidUpdate(prevProps) { | |
if ( | |
prevProps.navigation.state.isDrawerOpen != | |
this.props.navigation.state.isDrawerOpen | |
) { | |
this.props.setDrawerOpen(this.props.navigation.state.isDrawerOpen); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb shell input keyevent 82 |