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