/** * Link.tsx * * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT license. * * RN-specific implementation of the cross-platform Link abstraction. */ import * as PropTypes from 'prop-types'; import * as React from 'react'; import * as RN from 'react-native'; import { FocusArbitratorProvider } from '../common/utils/AutoFocusHelper'; import * as RX from '../common/Interfaces'; export interface LinkContext { focusArbitrator?: FocusArbitratorProvider; isRxParentAText?: boolean; } export declare class LinkBase extends React.Component { static contextTypes: { focusArbitrator: PropTypes.Requireable & PropTypes.Validator; isRxParentAText: PropTypes.Requireable & PropTypes.Validator; }; context: LinkContext; protected _mountedComponent: RN.Text | undefined; protected _isMounted: boolean; setNativeProps(nativeProps: RN.TextProps): void; render(): JSX.Element; componentDidMount(): void; componentWillUnmount(): void; protected _render(internalProps: RN.TextProps, onMount: (text: RN.Text | null) => void): JSX.Element; protected _onMount: (component: RN.Text | null) => void; protected _onPress: (e: RX.Types.SyntheticEvent) => void; protected _onLongPress: (e: RX.Types.SyntheticEvent) => void; requestFocus(): void; focus(): void; blur(): void; } export declare class Link extends LinkBase<{}> { } export default Link;