mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-01-13 09:30:30 +08:00
refactor: minor tweak
This commit is contained in:
@@ -75,7 +75,7 @@ const isDrawerOpen = (
|
||||
state:
|
||||
| DrawerNavigationState<ParamListBase>
|
||||
| PartialState<DrawerNavigationState<ParamListBase>>
|
||||
) => Boolean(state.history?.find((it) => it.type === 'drawer'));
|
||||
) => Boolean(state.history?.some((it) => it.type === 'drawer'));
|
||||
|
||||
const openDrawer = (
|
||||
state: DrawerNavigationState<ParamListBase>
|
||||
|
||||
Reference in New Issue
Block a user