import React , { FunctionComponent } from 'react' ; import { TouchableOpacity , TouchableOpacityProperties } from 'react-native' ; export interface TouchableOpacityLinkProps extends TouchableOpacityProperties { href ? : string ; } export const TouchableOpacityLink = ( { children , ... props } ) : JSX . Element => { const { href , ... properties } = props ; return ( < TouchableOpacity accessibilityTraits = 'link' { ... properties } > { children } < /TouchableOpacity>); } ;