/* eslint-disable react-native/no-inline-styles */ import { View, StyleSheet, TouchableOpacity, Image, Linking, } from 'react-native'; import React from 'react'; import images from '../../assets/images'; const Social = (props: any) => { const { links } = props; const renderSocial = (link: any, imageUrl: any, index: number) => { return ( { Linking.openURL(link); }} > ); }; return ( {links?.facebook ? renderSocial(links.facebook, images.facebook, 0) : null} {links.twitter ? renderSocial(links.twitter, images.twitter, 1) : null} {links?.youtube ? renderSocial(links.youtube, images.youtube, 2) : null} ); }; export default Social; const styles = StyleSheet.create({ container: { flexDirection: 'row', }, image: { width: 30, height: 30, borderRadius: 90 }, });