UNPKG

@emcsistemas/native-ui

Version:
14 lines 786 B
import { Image } from 'react-native'; import EMCBox from '../EMCBox/EMCBox'; import { convertBorderRadius, dimensionCalculate } from '../../styles/styles.util'; const EMCAvatar = (props) => { return (<EMCBox bg={props.bg} w={props.w} h={props.h} align='center' justify='center' m={props.m} mt={props.mt} mb={props.mb} ml={props.ml} mr={props.mr} bColor={props.bColor} bWidth={props.bWidth} rounded={props.rounded ?? 'full'}> <Image resizeMode='contain' style={{ width: dimensionCalculate(props.w), height: dimensionCalculate(props.h), borderRadius: convertBorderRadius(props.rounded ?? 'full') }} alt={props.alt} source={{ uri: props.source.uri }}/> </EMCBox>); }; export default EMCAvatar; //# sourceMappingURL=EMCAvatar.js.map