@hugeicons/react-native
Version:
HugeIcons Pro React Native Component Library https://hugeicons.com
3 lines (2 loc) • 1.47 kB
JavaScript
import{forwardRef as t,createElement as e}from"react";import{Svg as o,Path as r,Circle as s,Rect as i,Line as n,G as c}from"react-native-svg";"function"==typeof SuppressedError&&SuppressedError;const l={svg:o,path:r,circle:s,rect:i,line:n,g:c},a={width:24,height:24,viewBox:"0 0 24 24",fill:"none"};let h;try{h=require("nativewind").cssInterop}catch(t){h=null}const p=t(((t,r)=>{var{color:s="#000",size:i=24,strokeWidth:n,absoluteStrokeWidth:c=!1,className:h,style:p,icon:b,altIcon:g,showAlt:u=!1}=t,d=function(t,e){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(o[r[s]]=t[r[s]])}return o}(t,["color","size","strokeWidth","absoluteStrokeWidth","className","style","icon","altIcon","showAlt"]);const O=void 0!==n?c?24*Number(n)/Number(i):n:void 0,y=void 0!==O?{strokeWidth:O,stroke:"currentColor"}:{},f=Object.assign(Object.assign(Object.assign(Object.assign({ref:r},a),{width:i,height:i,color:s}),y),d),m=(u&&g?g:b).map((([t,o],r)=>{const s=l[t.toLowerCase()];return s?e(s,Object.assign(Object.assign(Object.assign({},o),y),{key:`${t}-${r}`})):null}));return e(o,f,m)})),b=h?h(p,{className:{target:!1,nativeStyleToProp:{color:"color",height:"height",width:"width"}}}):p;export{b as HugeiconsIcon};
//# sourceMappingURL=index.js.map