UNPKG

@vuduc0801/react-native-phosphor-icons

Version:

Since [Phosphor](https://phosphoricons.com/) does not support React Native, we have to convert all the SVGs to React Native SVGs.

31 lines 719 B
/* Generated code. Do not edit.*/ import { useMemo } from 'react'; import regular from '../regular/CreditCard'; import fill from '../fill/CreditCard'; import bold from '../bold/CreditCard'; function CreditCard(props) { const { color = '#000', size = 24, weight = 'regular', mirrored = false, style } = props; const weightMap = { fill, regular, bold }; const IconComponent = useMemo(() => { return weightMap[weight]; }, [weight]); return /*#__PURE__*/React.createElement(IconComponent, { color: color, size: size, style: [style, ...[mirrored && { transform: 'scaleX(-1)' }]] }); } export default CreditCard; //# sourceMappingURL=CreditCard.js.map