diff --git a/native/flow-typed/npm/@react-navigation/bottom-tabs_v5.x.x.js b/native/flow-typed/npm/@react-navigation/bottom-tabs_v5.x.x.js --- a/native/flow-typed/npm/@react-navigation/bottom-tabs_v5.x.x.js +++ b/native/flow-typed/npm/@react-navigation/bottom-tabs_v5.x.x.js @@ -1940,23 +1940,25 @@ +drawerClose: {| +data: void, +canPreventDefault: false |}, |}; - declare export type InexactDrawerNavigationProp< + declare type DrawerExtraNavigationHelpers< + ParamList: ParamListBase = ParamListBase, + > = {| + +jumpTo: SimpleNavigate, + +openDrawer: () => void, + +closeDrawer: () => void, + +toggleDrawer: () => void, + |}; + + declare export type DrawerNavigationHelpers< ParamList: ParamListBase = ParamListBase, - RouteName: $Keys = $Keys, - Options: {...} = DrawerOptions, EventMap: EventMapBase = DrawerNavigationEventMap, > = { - ...$Exact>, - +jumpTo: SimpleNavigate, - +openDrawer: () => void, - +closeDrawer: () => void, - +toggleDrawer: () => void, + ...DrawerExtraNavigationHelpers, ... }; @@ -1965,19 +1967,23 @@ RouteName: $Keys = $Keys, Options: {...} = DrawerOptions, EventMap: EventMapBase = DrawerNavigationEventMap, - > = $Exact>; + > = {| + ...$Exact>, + ...DrawerExtraNavigationHelpers, + |}; /** * Miscellaneous drawer exports */ declare export type DrawerDescriptor = Descriptor< - DrawerNavigationProp<>, + DrawerNavigationHelpers<>, DrawerOptions, >; @@ -1998,7 +2004,7 @@ declare type DrawerNavigationBuilderResult = {| +state: DrawerNavigationState, - +navigation: DrawerNavigationProp<>, + +navigation: DrawerNavigationHelpers<>, +descriptors: {| +[key: string]: DrawerDescriptor |}, |}; @@ -2033,10 +2039,10 @@ |}; declare export type DrawerNavigatorProps< - NavProp: InexactDrawerNavigationProp<> = DrawerNavigationProp<>, + NavHelpers: DrawerNavigationHelpers<> = DrawerNavigationHelpers<>, > = {| ...ExtraDrawerNavigatorProps, - ...ScreenOptionsProp, + ...ScreenOptionsProp, |}; /** diff --git a/native/flow-typed/npm/@react-navigation/devtools_v5.x.x.js b/native/flow-typed/npm/@react-navigation/devtools_v5.x.x.js --- a/native/flow-typed/npm/@react-navigation/devtools_v5.x.x.js +++ b/native/flow-typed/npm/@react-navigation/devtools_v5.x.x.js @@ -1940,23 +1940,25 @@ +drawerClose: {| +data: void, +canPreventDefault: false |}, |}; - declare export type InexactDrawerNavigationProp< + declare type DrawerExtraNavigationHelpers< + ParamList: ParamListBase = ParamListBase, + > = {| + +jumpTo: SimpleNavigate, + +openDrawer: () => void, + +closeDrawer: () => void, + +toggleDrawer: () => void, + |}; + + declare export type DrawerNavigationHelpers< ParamList: ParamListBase = ParamListBase, - RouteName: $Keys = $Keys, - Options: {...} = DrawerOptions, EventMap: EventMapBase = DrawerNavigationEventMap, > = { - ...$Exact>, - +jumpTo: SimpleNavigate, - +openDrawer: () => void, - +closeDrawer: () => void, - +toggleDrawer: () => void, + ...DrawerExtraNavigationHelpers, ... }; @@ -1965,19 +1967,23 @@ RouteName: $Keys = $Keys, Options: {...} = DrawerOptions, EventMap: EventMapBase = DrawerNavigationEventMap, - > = $Exact>; + > = {| + ...$Exact>, + ...DrawerExtraNavigationHelpers, + |}; /** * Miscellaneous drawer exports */ declare export type DrawerDescriptor = Descriptor< - DrawerNavigationProp<>, + DrawerNavigationHelpers<>, DrawerOptions, >; @@ -1998,7 +2004,7 @@ declare type DrawerNavigationBuilderResult = {| +state: DrawerNavigationState, - +navigation: DrawerNavigationProp<>, + +navigation: DrawerNavigationHelpers<>, +descriptors: {| +[key: string]: DrawerDescriptor |}, |}; @@ -2033,10 +2039,10 @@ |}; declare export type DrawerNavigatorProps< - NavProp: InexactDrawerNavigationProp<> = DrawerNavigationProp<>, + NavHelpers: DrawerNavigationHelpers<> = DrawerNavigationHelpers<>, > = {| ...ExtraDrawerNavigatorProps, - ...ScreenOptionsProp, + ...ScreenOptionsProp, |}; /** diff --git a/native/flow-typed/npm/@react-navigation/material-top-tabs_v5.x.x.js b/native/flow-typed/npm/@react-navigation/material-top-tabs_v5.x.x.js --- a/native/flow-typed/npm/@react-navigation/material-top-tabs_v5.x.x.js +++ b/native/flow-typed/npm/@react-navigation/material-top-tabs_v5.x.x.js @@ -1940,23 +1940,25 @@ +drawerClose: {| +data: void, +canPreventDefault: false |}, |}; - declare export type InexactDrawerNavigationProp< + declare type DrawerExtraNavigationHelpers< + ParamList: ParamListBase = ParamListBase, + > = {| + +jumpTo: SimpleNavigate, + +openDrawer: () => void, + +closeDrawer: () => void, + +toggleDrawer: () => void, + |}; + + declare export type DrawerNavigationHelpers< ParamList: ParamListBase = ParamListBase, - RouteName: $Keys = $Keys, - Options: {...} = DrawerOptions, EventMap: EventMapBase = DrawerNavigationEventMap, > = { - ...$Exact>, - +jumpTo: SimpleNavigate, - +openDrawer: () => void, - +closeDrawer: () => void, - +toggleDrawer: () => void, + ...DrawerExtraNavigationHelpers, ... }; @@ -1965,19 +1967,23 @@ RouteName: $Keys = $Keys, Options: {...} = DrawerOptions, EventMap: EventMapBase = DrawerNavigationEventMap, - > = $Exact>; + > = {| + ...$Exact>, + ...DrawerExtraNavigationHelpers, + |}; /** * Miscellaneous drawer exports */ declare export type DrawerDescriptor = Descriptor< - DrawerNavigationProp<>, + DrawerNavigationHelpers<>, DrawerOptions, >; @@ -1998,7 +2004,7 @@ declare type DrawerNavigationBuilderResult = {| +state: DrawerNavigationState, - +navigation: DrawerNavigationProp<>, + +navigation: DrawerNavigationHelpers<>, +descriptors: {| +[key: string]: DrawerDescriptor |}, |}; @@ -2033,10 +2039,10 @@ |}; declare export type DrawerNavigatorProps< - NavProp: InexactDrawerNavigationProp<> = DrawerNavigationProp<>, + NavHelpers: DrawerNavigationHelpers<> = DrawerNavigationHelpers<>, > = {| ...ExtraDrawerNavigatorProps, - ...ScreenOptionsProp, + ...ScreenOptionsProp, |}; /** diff --git a/native/flow-typed/npm/@react-navigation/native_v5.x.x.js b/native/flow-typed/npm/@react-navigation/native_v5.x.x.js --- a/native/flow-typed/npm/@react-navigation/native_v5.x.x.js +++ b/native/flow-typed/npm/@react-navigation/native_v5.x.x.js @@ -1940,23 +1940,25 @@ +drawerClose: {| +data: void, +canPreventDefault: false |}, |}; - declare export type InexactDrawerNavigationProp< + declare type DrawerExtraNavigationHelpers< + ParamList: ParamListBase = ParamListBase, + > = {| + +jumpTo: SimpleNavigate, + +openDrawer: () => void, + +closeDrawer: () => void, + +toggleDrawer: () => void, + |}; + + declare export type DrawerNavigationHelpers< ParamList: ParamListBase = ParamListBase, - RouteName: $Keys = $Keys, - Options: {...} = DrawerOptions, EventMap: EventMapBase = DrawerNavigationEventMap, > = { - ...$Exact>, - +jumpTo: SimpleNavigate, - +openDrawer: () => void, - +closeDrawer: () => void, - +toggleDrawer: () => void, + ...DrawerExtraNavigationHelpers, ... }; @@ -1965,19 +1967,23 @@ RouteName: $Keys = $Keys, Options: {...} = DrawerOptions, EventMap: EventMapBase = DrawerNavigationEventMap, - > = $Exact>; + > = {| + ...$Exact>, + ...DrawerExtraNavigationHelpers, + |}; /** * Miscellaneous drawer exports */ declare export type DrawerDescriptor = Descriptor< - DrawerNavigationProp<>, + DrawerNavigationHelpers<>, DrawerOptions, >; @@ -1998,7 +2004,7 @@ declare type DrawerNavigationBuilderResult = {| +state: DrawerNavigationState, - +navigation: DrawerNavigationProp<>, + +navigation: DrawerNavigationHelpers<>, +descriptors: {| +[key: string]: DrawerDescriptor |}, |}; @@ -2033,10 +2039,10 @@ |}; declare export type DrawerNavigatorProps< - NavProp: InexactDrawerNavigationProp<> = DrawerNavigationProp<>, + NavHelpers: DrawerNavigationHelpers<> = DrawerNavigationHelpers<>, > = {| ...ExtraDrawerNavigatorProps, - ...ScreenOptionsProp, + ...ScreenOptionsProp, |}; /** diff --git a/native/flow-typed/npm/@react-navigation/stack_v5.x.x.js b/native/flow-typed/npm/@react-navigation/stack_v5.x.x.js --- a/native/flow-typed/npm/@react-navigation/stack_v5.x.x.js +++ b/native/flow-typed/npm/@react-navigation/stack_v5.x.x.js @@ -1940,23 +1940,25 @@ +drawerClose: {| +data: void, +canPreventDefault: false |}, |}; - declare export type InexactDrawerNavigationProp< + declare type DrawerExtraNavigationHelpers< + ParamList: ParamListBase = ParamListBase, + > = {| + +jumpTo: SimpleNavigate, + +openDrawer: () => void, + +closeDrawer: () => void, + +toggleDrawer: () => void, + |}; + + declare export type DrawerNavigationHelpers< ParamList: ParamListBase = ParamListBase, - RouteName: $Keys = $Keys, - Options: {...} = DrawerOptions, EventMap: EventMapBase = DrawerNavigationEventMap, > = { - ...$Exact>, - +jumpTo: SimpleNavigate, - +openDrawer: () => void, - +closeDrawer: () => void, - +toggleDrawer: () => void, + ...DrawerExtraNavigationHelpers, ... }; @@ -1965,19 +1967,23 @@ RouteName: $Keys = $Keys, Options: {...} = DrawerOptions, EventMap: EventMapBase = DrawerNavigationEventMap, - > = $Exact>; + > = {| + ...$Exact>, + ...DrawerExtraNavigationHelpers, + |}; /** * Miscellaneous drawer exports */ declare export type DrawerDescriptor = Descriptor< - DrawerNavigationProp<>, + DrawerNavigationHelpers<>, DrawerOptions, >; @@ -1998,7 +2004,7 @@ declare type DrawerNavigationBuilderResult = {| +state: DrawerNavigationState, - +navigation: DrawerNavigationProp<>, + +navigation: DrawerNavigationHelpers<>, +descriptors: {| +[key: string]: DrawerDescriptor |}, |}; @@ -2033,10 +2039,10 @@ |}; declare export type DrawerNavigatorProps< - NavProp: InexactDrawerNavigationProp<> = DrawerNavigationProp<>, + NavHelpers: DrawerNavigationHelpers<> = DrawerNavigationHelpers<>, > = {| ...ExtraDrawerNavigatorProps, - ...ScreenOptionsProp, + ...ScreenOptionsProp, |}; /**