@refineui/react-native-icons 0.2.0 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/filled-icons.d.ts +45090 -270
- package/dist/filled-icons.d.ts.map +1 -1
- package/dist/index.d.ts +1 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +4 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +4 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/regular-icons.d.ts +45090 -270
- package/dist/regular-icons.d.ts.map +1 -1
- package/dist/utils.d.ts +169 -3
- package/dist/utils.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -37833,7 +37833,7 @@ const reactNativeIconUtils = new ReactNativeIconUtils();
|
|
|
37833
37833
|
|
|
37834
37834
|
// === Icon component creation method ===
|
|
37835
37835
|
const createIconComponent = (iconName, style) => {
|
|
37836
|
-
return
|
|
37836
|
+
return (props) => {
|
|
37837
37837
|
const iconChar = reactNativeIconUtils.getIconChar(iconName, style, props.size || 24);
|
|
37838
37838
|
const fontFamily = reactNativeIconUtils.getFontFamily(style);
|
|
37839
37839
|
if (!iconChar)
|
|
@@ -37844,13 +37844,11 @@ const createIconComponent = (iconName, style) => {
|
|
|
37844
37844
|
color: props.color || 'currentColor',
|
|
37845
37845
|
lineHeight: 1,
|
|
37846
37846
|
};
|
|
37847
|
-
const { iconStyle, ...restProps } = props;
|
|
37848
37847
|
return React__default["default"].createElement(reactNative.Text, {
|
|
37849
|
-
|
|
37850
|
-
|
|
37851
|
-
...restProps,
|
|
37848
|
+
style: [styleObj, props.style],
|
|
37849
|
+
...props,
|
|
37852
37850
|
}, iconChar);
|
|
37853
|
-
}
|
|
37851
|
+
};
|
|
37854
37852
|
};
|
|
37855
37853
|
const getIconChar = (iconName, style = 'regular', size = 24) => {
|
|
37856
37854
|
return reactNativeIconUtils.getIconChar(iconName, style, size);
|