import { useCallback, type FC } from "react"; import { StyledText } from "../StyledComponents"; import { Linking, StyleSheet } from "react-native"; import type { LinkProps } from "../../types"; const Link: FC = ({ title = 'Link', href, style, ...rest }) => { const onUserPress = useCallback(async () => { const supported = await Linking.canOpenURL(href); if (supported) { await Linking.openURL(href); } }, [href]); return ( {title} ) } export default Link; const STYLES = StyleSheet.create({ TEXT: { // borderBottomColor: '#0000FF', // borderBottomWidth: 0.8, // alignSelf: 'flex-start', } });