mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-30 05:15:25 +08:00
fix: fix behaviour of openByDefault in drawer when focus changes
This commit is contained in:
@@ -153,6 +153,10 @@ export default function DrawerRouter({
|
||||
getStateForRouteFocus(state, key) {
|
||||
const result = router.getStateForRouteFocus(state, key);
|
||||
|
||||
if (openByDefault) {
|
||||
return openDrawer(result);
|
||||
}
|
||||
|
||||
return closeDrawer(result);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user