mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-13 21:06:14 +08:00
Add DrawerNavigationState (#27512)
This commit is contained in:
5
types/react-navigation/index.d.ts
vendored
5
types/react-navigation/index.d.ts
vendored
@@ -88,6 +88,11 @@ export interface NavigationState {
|
||||
routes: NavigationRoute[];
|
||||
}
|
||||
|
||||
export interface DrawerNavigationState extends NavigationState {
|
||||
isDrawerOpen: boolean;
|
||||
isTransitioning: boolean;
|
||||
}
|
||||
|
||||
export type NavigationRoute<Params = NavigationParams> =
|
||||
| NavigationLeafRoute<Params>
|
||||
| NavigationStateRoute<Params>;
|
||||
|
||||
Reference in New Issue
Block a user