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 @@ -1050,19 +1050,19 @@ EventMap, >) => React$Node; - declare type ScreenOptionsProp = {| + declare type ScreenOptionsProp = {| +screenOptions?: | ScreenOptions - | ({| route: LeafRoute<>, navigation: NavProp |}) => ScreenOptions, + | ({| route: LeafRoute<>, navigation: NavHelpers |}) => ScreenOptions, |}; declare export type ExtraNavigatorPropsBase = { ...$Exact, +children?: React$Node, ... }; - declare export type NavigatorPropsBase = { + declare export type NavigatorPropsBase = { ...$Exact, - ...ScreenOptionsProp, + ...ScreenOptionsProp, ... }; @@ -1074,7 +1074,7 @@ > = < GlobalParamList: ParamListBase, ParamList: ParamListBase, - NavProp: NavigationHelpers< + NavHelpers: NavigationHelpers< GlobalParamList, State, EventMap, @@ -1089,16 +1089,16 @@ >, +Navigator: React$ComponentType<{| ...$Exact, - ...ScreenOptionsProp, + ...ScreenOptionsProp, +screenListeners?: | ScreenListeners | ({| +route: RouteProp, - +navigation: NavProp, + +navigation: NavHelpers, |}) => ScreenListeners, |}>, +Group: React$ComponentType<{| - ...ScreenOptionsProp, + ...ScreenOptionsProp, +children: React$Node, +navigationKey?: string, |}>, @@ -1108,7 +1108,7 @@ State: NavigationState, ScreenOptions: {...}, EventMap: EventMapBase, - NavProp: NavigationHelpers< + NavHelpers: NavigationHelpers< ParamListBase, State, EventMap, @@ -1117,7 +1117,7 @@ >( navigator: React$ComponentType<{| ...$Exact, - ...ScreenOptionsProp, + ...ScreenOptionsProp, |}>, ) => CreateNavigator; @@ -1126,12 +1126,12 @@ */ declare export type Descriptor< - NavProp, + NavHelpers, ScreenOptions: {...} = {...}, > = {| +render: () => React$Node, +options: $ReadOnly, - +navigation: NavProp, + +navigation: NavHelpers, |}; declare export type UseNavigationBuilder = < @@ -1139,18 +1139,18 @@ Action: GenericNavigationAction, ScreenOptions: {...}, RouterOptions: DefaultRouterOptions, - NavProp, + NavHelpers, >( routerFactory: RouterFactory, options: {| ...$Exact, - ...ScreenOptionsProp, + ...ScreenOptionsProp, +children?: React$Node, |}, ) => {| +state: State, - +descriptors: {| +[key: string]: Descriptor |}, - +navigation: NavProp, + +descriptors: {| +[key: string]: Descriptor |}, + +navigation: NavHelpers, |}; /** 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 @@ -1050,19 +1050,19 @@ EventMap, >) => React$Node; - declare type ScreenOptionsProp = {| + declare type ScreenOptionsProp = {| +screenOptions?: | ScreenOptions - | ({| route: LeafRoute<>, navigation: NavProp |}) => ScreenOptions, + | ({| route: LeafRoute<>, navigation: NavHelpers |}) => ScreenOptions, |}; declare export type ExtraNavigatorPropsBase = { ...$Exact, +children?: React$Node, ... }; - declare export type NavigatorPropsBase = { + declare export type NavigatorPropsBase = { ...$Exact, - ...ScreenOptionsProp, + ...ScreenOptionsProp, ... }; @@ -1074,7 +1074,7 @@ > = < GlobalParamList: ParamListBase, ParamList: ParamListBase, - NavProp: NavigationHelpers< + NavHelpers: NavigationHelpers< GlobalParamList, State, EventMap, @@ -1089,16 +1089,16 @@ >, +Navigator: React$ComponentType<{| ...$Exact, - ...ScreenOptionsProp, + ...ScreenOptionsProp, +screenListeners?: | ScreenListeners | ({| +route: RouteProp, - +navigation: NavProp, + +navigation: NavHelpers, |}) => ScreenListeners, |}>, +Group: React$ComponentType<{| - ...ScreenOptionsProp, + ...ScreenOptionsProp, +children: React$Node, +navigationKey?: string, |}>, @@ -1108,7 +1108,7 @@ State: NavigationState, ScreenOptions: {...}, EventMap: EventMapBase, - NavProp: NavigationHelpers< + NavHelpers: NavigationHelpers< ParamListBase, State, EventMap, @@ -1117,7 +1117,7 @@ >( navigator: React$ComponentType<{| ...$Exact, - ...ScreenOptionsProp, + ...ScreenOptionsProp, |}>, ) => CreateNavigator; @@ -1126,12 +1126,12 @@ */ declare export type Descriptor< - NavProp, + NavHelpers, ScreenOptions: {...} = {...}, > = {| +render: () => React$Node, +options: $ReadOnly, - +navigation: NavProp, + +navigation: NavHelpers, |}; declare export type UseNavigationBuilder = < @@ -1139,18 +1139,18 @@ Action: GenericNavigationAction, ScreenOptions: {...}, RouterOptions: DefaultRouterOptions, - NavProp, + NavHelpers, >( routerFactory: RouterFactory, options: {| ...$Exact, - ...ScreenOptionsProp, + ...ScreenOptionsProp, +children?: React$Node, |}, ) => {| +state: State, - +descriptors: {| +[key: string]: Descriptor |}, - +navigation: NavProp, + +descriptors: {| +[key: string]: Descriptor |}, + +navigation: NavHelpers, |}; /** 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 @@ -1050,19 +1050,19 @@ EventMap, >) => React$Node; - declare type ScreenOptionsProp = {| + declare type ScreenOptionsProp = {| +screenOptions?: | ScreenOptions - | ({| route: LeafRoute<>, navigation: NavProp |}) => ScreenOptions, + | ({| route: LeafRoute<>, navigation: NavHelpers |}) => ScreenOptions, |}; declare export type ExtraNavigatorPropsBase = { ...$Exact, +children?: React$Node, ... }; - declare export type NavigatorPropsBase = { + declare export type NavigatorPropsBase = { ...$Exact, - ...ScreenOptionsProp, + ...ScreenOptionsProp, ... }; @@ -1074,7 +1074,7 @@ > = < GlobalParamList: ParamListBase, ParamList: ParamListBase, - NavProp: NavigationHelpers< + NavHelpers: NavigationHelpers< GlobalParamList, State, EventMap, @@ -1089,16 +1089,16 @@ >, +Navigator: React$ComponentType<{| ...$Exact, - ...ScreenOptionsProp, + ...ScreenOptionsProp, +screenListeners?: | ScreenListeners | ({| +route: RouteProp, - +navigation: NavProp, + +navigation: NavHelpers, |}) => ScreenListeners, |}>, +Group: React$ComponentType<{| - ...ScreenOptionsProp, + ...ScreenOptionsProp, +children: React$Node, +navigationKey?: string, |}>, @@ -1108,7 +1108,7 @@ State: NavigationState, ScreenOptions: {...}, EventMap: EventMapBase, - NavProp: NavigationHelpers< + NavHelpers: NavigationHelpers< ParamListBase, State, EventMap, @@ -1117,7 +1117,7 @@ >( navigator: React$ComponentType<{| ...$Exact, - ...ScreenOptionsProp, + ...ScreenOptionsProp, |}>, ) => CreateNavigator; @@ -1126,12 +1126,12 @@ */ declare export type Descriptor< - NavProp, + NavHelpers, ScreenOptions: {...} = {...}, > = {| +render: () => React$Node, +options: $ReadOnly, - +navigation: NavProp, + +navigation: NavHelpers, |}; declare export type UseNavigationBuilder = < @@ -1139,18 +1139,18 @@ Action: GenericNavigationAction, ScreenOptions: {...}, RouterOptions: DefaultRouterOptions, - NavProp, + NavHelpers, >( routerFactory: RouterFactory, options: {| ...$Exact, - ...ScreenOptionsProp, + ...ScreenOptionsProp, +children?: React$Node, |}, ) => {| +state: State, - +descriptors: {| +[key: string]: Descriptor |}, - +navigation: NavProp, + +descriptors: {| +[key: string]: Descriptor |}, + +navigation: NavHelpers, |}; /** 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 @@ -1050,19 +1050,19 @@ EventMap, >) => React$Node; - declare type ScreenOptionsProp = {| + declare type ScreenOptionsProp = {| +screenOptions?: | ScreenOptions - | ({| route: LeafRoute<>, navigation: NavProp |}) => ScreenOptions, + | ({| route: LeafRoute<>, navigation: NavHelpers |}) => ScreenOptions, |}; declare export type ExtraNavigatorPropsBase = { ...$Exact, +children?: React$Node, ... }; - declare export type NavigatorPropsBase = { + declare export type NavigatorPropsBase = { ...$Exact, - ...ScreenOptionsProp, + ...ScreenOptionsProp, ... }; @@ -1074,7 +1074,7 @@ > = < GlobalParamList: ParamListBase, ParamList: ParamListBase, - NavProp: NavigationHelpers< + NavHelpers: NavigationHelpers< GlobalParamList, State, EventMap, @@ -1089,16 +1089,16 @@ >, +Navigator: React$ComponentType<{| ...$Exact, - ...ScreenOptionsProp, + ...ScreenOptionsProp, +screenListeners?: | ScreenListeners | ({| +route: RouteProp, - +navigation: NavProp, + +navigation: NavHelpers, |}) => ScreenListeners, |}>, +Group: React$ComponentType<{| - ...ScreenOptionsProp, + ...ScreenOptionsProp, +children: React$Node, +navigationKey?: string, |}>, @@ -1108,7 +1108,7 @@ State: NavigationState, ScreenOptions: {...}, EventMap: EventMapBase, - NavProp: NavigationHelpers< + NavHelpers: NavigationHelpers< ParamListBase, State, EventMap, @@ -1117,7 +1117,7 @@ >( navigator: React$ComponentType<{| ...$Exact, - ...ScreenOptionsProp, + ...ScreenOptionsProp, |}>, ) => CreateNavigator; @@ -1126,12 +1126,12 @@ */ declare export type Descriptor< - NavProp, + NavHelpers, ScreenOptions: {...} = {...}, > = {| +render: () => React$Node, +options: $ReadOnly, - +navigation: NavProp, + +navigation: NavHelpers, |}; declare export type UseNavigationBuilder = < @@ -1139,18 +1139,18 @@ Action: GenericNavigationAction, ScreenOptions: {...}, RouterOptions: DefaultRouterOptions, - NavProp, + NavHelpers, >( routerFactory: RouterFactory, options: {| ...$Exact, - ...ScreenOptionsProp, + ...ScreenOptionsProp, +children?: React$Node, |}, ) => {| +state: State, - +descriptors: {| +[key: string]: Descriptor |}, - +navigation: NavProp, + +descriptors: {| +[key: string]: Descriptor |}, + +navigation: NavHelpers, |}; /** 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 @@ -1050,19 +1050,19 @@ EventMap, >) => React$Node; - declare type ScreenOptionsProp = {| + declare type ScreenOptionsProp = {| +screenOptions?: | ScreenOptions - | ({| route: LeafRoute<>, navigation: NavProp |}) => ScreenOptions, + | ({| route: LeafRoute<>, navigation: NavHelpers |}) => ScreenOptions, |}; declare export type ExtraNavigatorPropsBase = { ...$Exact, +children?: React$Node, ... }; - declare export type NavigatorPropsBase = { + declare export type NavigatorPropsBase = { ...$Exact, - ...ScreenOptionsProp, + ...ScreenOptionsProp, ... }; @@ -1074,7 +1074,7 @@ > = < GlobalParamList: ParamListBase, ParamList: ParamListBase, - NavProp: NavigationHelpers< + NavHelpers: NavigationHelpers< GlobalParamList, State, EventMap, @@ -1089,16 +1089,16 @@ >, +Navigator: React$ComponentType<{| ...$Exact, - ...ScreenOptionsProp, + ...ScreenOptionsProp, +screenListeners?: | ScreenListeners | ({| +route: RouteProp, - +navigation: NavProp, + +navigation: NavHelpers, |}) => ScreenListeners, |}>, +Group: React$ComponentType<{| - ...ScreenOptionsProp, + ...ScreenOptionsProp, +children: React$Node, +navigationKey?: string, |}>, @@ -1108,7 +1108,7 @@ State: NavigationState, ScreenOptions: {...}, EventMap: EventMapBase, - NavProp: NavigationHelpers< + NavHelpers: NavigationHelpers< ParamListBase, State, EventMap, @@ -1117,7 +1117,7 @@ >( navigator: React$ComponentType<{| ...$Exact, - ...ScreenOptionsProp, + ...ScreenOptionsProp, |}>, ) => CreateNavigator; @@ -1126,12 +1126,12 @@ */ declare export type Descriptor< - NavProp, + NavHelpers, ScreenOptions: {...} = {...}, > = {| +render: () => React$Node, +options: $ReadOnly, - +navigation: NavProp, + +navigation: NavHelpers, |}; declare export type UseNavigationBuilder = < @@ -1139,18 +1139,18 @@ Action: GenericNavigationAction, ScreenOptions: {...}, RouterOptions: DefaultRouterOptions, - NavProp, + NavHelpers, >( routerFactory: RouterFactory, options: {| ...$Exact, - ...ScreenOptionsProp, + ...ScreenOptionsProp, +children?: React$Node, |}, ) => {| +state: State, - +descriptors: {| +[key: string]: Descriptor |}, - +navigation: NavProp, + +descriptors: {| +[key: string]: Descriptor |}, + +navigation: NavHelpers, |}; /**