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 @@ -2228,21 +2228,32 @@ * Linking */ + declare export type LinkTo< + ParamList: ParamListBase, + RouteName: $Keys, + > = + | string + | {| +screen: RouteName, +params?: $ElementType |}; + declare export var Link: React$ComponentType<{ - +to: string, + +to: LinkTo<>, +action?: GenericNavigationAction, +target?: string, +children: React$Node, ... }>; - declare export function useLinkTo(): (path: string) => void; + declare export function useLinkTo( + ): (path: LinkTo) => void; - declare export function useLinkProps(props: {| - +to: To, + declare export function useLinkProps< + ParamList: ParamListBase, + RouteName: $Keys, + >(props: {| + +to: LinkTo, +action?: GenericNavigationAction, |}): {| - +href: To, + +href: string, +accessibilityRole: 'link', +onPress: (MouseEvent | PressEvent) => void, |};