@kietpt2003/react-native-core-ui
Version:
React Native Core UI components by KietPT
10 lines (9 loc) • 674 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import Svg, { Circle, Polygon } from 'react-native-svg';
import { scale } from '../../utils';
const IconPlayCircle = ({ size, color, strokeWidth, fill, style, }) => {
const circleStrokeWidth = scale(5);
const circleRadius = 50 - circleStrokeWidth / 2;
return (_jsxs(Svg, { width: size, height: size, viewBox: "0 0 100 100", style: style, children: [_jsx(Circle, { cx: "50", cy: "50", r: circleRadius, fill: fill, stroke: color, strokeWidth: strokeWidth }), _jsx(Polygon, { points: "40,30 40,70 70,50", fill: color, stroke: color, strokeWidth: strokeWidth })] }));
};
export default IconPlayCircle;