import React, {ReactNode} from 'react'; import {TouchableOpacity, Linking} from 'react-native'; type HyperlinkProps = { url: string; children: ReactNode; }; const Hyperlink: React.FC = ({url, children}) => { const handlePress = () => { Linking.canOpenURL(url).then(supported => { if (supported) { Linking.openURL(url); } else { } }); }; return ( {children} ); }; export default Hyperlink;