UNPKG

@hugeicons/react-native

Version:

HugeIcons Pro React Native Component Library https://hugeicons.com

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