UNPKG

@kojon74/react-native-unicons

Version:

Unicons - 4,500+ vector icons as easy to use vector React Native Components

31 lines (26 loc) 781 B
import React from "react"; import Svg, { Path } from "react-native-svg"; import PropTypes from "prop-types"; const UilPolygon = props => { const { color, size, ...otherProps } = props; return ( <Svg width={size} height={size} viewBox="0 0 24 24" fill={color} {...otherProps} > <Path d="M21.87,11.5l-4.5-7.79a1,1,0,0,0-.87-.5h-9a1,1,0,0,0-.87.5L2.13,11.5a1,1,0,0,0,0,1l4.5,7.79a1,1,0,0,0,.87.5h9a1,1,0,0,0,.87-.5l4.5-7.79A1,1,0,0,0,21.87,11.5Zm-6,7.29H8.08L4.15,12,8.08,5.21h7.84L19.85,12Z" /> </Svg> ); }; UilPolygon.propTypes = { color: PropTypes.string, size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]) }; UilPolygon.defaultProps = { color: "currentColor", size: "24" }; export default UilPolygon;