import {useNavigation} from '@react-navigation/native'; import React from 'react'; import {StyleSheet, TouchableOpacity, View} from 'react-native'; import LinearGradient from 'react-native-linear-gradient'; import {TAGGS_GRADIENT} from '../../constants'; interface TaggProps { style: object; social: string; isProfileView: boolean; } const Tagg: React.FC = ({style, social, isProfileView}) => { const navigation = useNavigation(); return ( navigation.navigate('SocialMediaTaggs', { socialMediaType: social, isProfileView: isProfileView, }) }> ); }; const styles = StyleSheet.create({ gradient: { width: 80, height: 80, borderRadius: 40, justifyContent: 'center', alignItems: 'center', }, image: { width: 72, height: 72, borderRadius: 37.5, backgroundColor: 'pink', }, }); export default Tagg;