import React from 'react'; import {StyleSheet, TextProps} from 'react-native'; import {fontSizeConst, fontWeightConst} from '@/constants/uiConst'; import {TouchableOpacity} from 'react-native-gesture-handler'; import openUrl from '@/utils/openUrl'; import ThemeText from './themeText'; type ILinkTextProps = TextProps & { fontSize?: keyof typeof fontSizeConst; fontWeight?: keyof typeof fontWeightConst; linkTo?: string; }; export default function LinkText(props: ILinkTextProps) { return ( { props?.linkTo && openUrl(props.linkTo); }}> {props.children} ); } const style = StyleSheet.create({ linkText: { color: '#66ccff', textDecorationLine: 'underline', }, });