mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-03-06 22:39:41 +08:00
fix: consider openByDefault prop when rehydrating drawer state (#9099)
Co-authored-by: Johannes Huber <jh@sekonia.com> Co-authored-by: Satyajit Sahoo <satyajit.happy@gmail.com>
This commit is contained in:
committed by
GitHub
parent
c9a5d45324
commit
2ad61a6735
@@ -145,7 +145,7 @@ export default function DrawerRouter({
|
||||
routeParamList,
|
||||
});
|
||||
|
||||
if (isDrawerOpen(partialState)) {
|
||||
if (partialState.history ? isDrawerOpen(partialState) : openByDefault) {
|
||||
state = openDrawer(state);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user