Allow disabling BackHandler subscription in DrawerView
closed
Rajat Parashar
Currently, I use the Nested Drawer navigator inside the Stack navigator screen. But when the screen containing the Drawer navigator is focused, it does not allow to go back via the hardware back button.
if if we try to override the backhander inside that screen the Subscription inside Drawer takes precedence.
If we can hide the following subscription behind a flag then Stack navigator will properly handle the hardware back button.
const subscription = enableBackHandler
+ ? BackHandler.addEventListener('hardwareBackPress', handleClose)
+ : undefined;
satya164
closed
Rajat Parashar
Rajat Parashar
This was caused by a bug in repo. Thanks to satya164 for finding it and fixing it.
Rajat Parashar