1 | import { NavigationAction } from '@react-navigation/core';
|
2 | import * as React from 'react';
|
3 | import { GestureResponderEvent } from 'react-native';
|
4 | import { To } from './useLinkTo';
|
5 | declare type Props<ParamList extends ReactNavigation.RootParamList> = {
|
6 | to: To<ParamList>;
|
7 | action?: NavigationAction;
|
8 | };
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | export default function useLinkProps<ParamList extends ReactNavigation.RootParamList>({ to, action }: Props<ParamList>): {
|
16 | href: string;
|
17 | accessibilityRole: "link";
|
18 | onPress: (e?: React.MouseEvent<HTMLAnchorElement, MouseEvent> | GestureResponderEvent | undefined) => void;
|
19 | };
|
20 | export {};
|