import React, { type FC } from 'react'; import { View, Linking } from 'react-native'; import { TouchableOpacity } from 'react-native-gesture-handler'; import { ShowcaseLabel } from '../showcaseLabel'; import { useStyles } from './styles'; import type { ShowcaseFooterProps } from './types'; export const ShowcaseFooter: FC = ({ username, url = '', }) => { // variables const styles = useStyles(); //#region callbacks const handleOnPress = () => { Linking.canOpenURL(url) .then(canOpen => { if (canOpen) { Linking.openURL(url); } }) .catch(() => {}); }; //#endregion // renders return ( created by{' '} {username} ); };