diff --git a/native/flow-typed/npm/@react-navigation/core_v6.x.x.js b/native/flow-typed/npm/@react-navigation/core_v6.x.x.js --- a/native/flow-typed/npm/@react-navigation/core_v6.x.x.js +++ b/native/flow-typed/npm/@react-navigation/core_v6.x.x.js @@ -776,7 +776,7 @@ declare type GlobalEventMap = {| +state: {| +data: {| +state: State |}, +canPreventDefault: false |}, |}; - declare type EventMapCore = {| + declare export type EventMapCore = {| ...GlobalEventMap, +focus: {| +data: void, +canPreventDefault: false |}, +blur: {| +data: void, +canPreventDefault: false |}, diff --git a/native/flow-typed/npm/@react-navigation/native_v6.x.x.js b/native/flow-typed/npm/@react-navigation/native_v6.x.x.js --- a/native/flow-typed/npm/@react-navigation/native_v6.x.x.js +++ b/native/flow-typed/npm/@react-navigation/native_v6.x.x.js @@ -40,6 +40,8 @@ ScreenParams, NavigationContainerType, BaseNavigationContainerInterfaceRef, + EventMapBase, + EventMapCore, } from '@react-navigation/core'; /** @@ -85,9 +87,29 @@ declare export var useNavigationBuilder: UseNavigationBuilder; - declare export var NavigationHelpersContext: React$Context< - ?NavigationHelpers, - >; + declare export var NavigationHelpersContext: { + Provider: < + ParamList: ParamListBase, + State: PossiblyStaleNavigationState = PossiblyStaleNavigationState, + EventMap: EventMapBase = EventMapCore, + T: ?NavigationHelpers = ?NavigationHelpers, + >(props: { + +value: T, + +children?: React$Node, + ... + }) => React$Node, + Consumer: < + ParamList: ParamListBase, + State: PossiblyStaleNavigationState = PossiblyStaleNavigationState, + EventMap: EventMapBase = EventMapCore, + T: ?NavigationHelpers = ?NavigationHelpers, + >(props: { + +children: (value: T) => ?React$Node, + ... + }) => React$Node, + displayName?: string, + ... + }; /** * Navigation prop / route accessors