reicon-react-native 1.0.101 → 1.0.102

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.
Files changed (2) hide show
  1. package/createIcon.js +5 -7
  2. package/package.json +1 -1
package/createIcon.js CHANGED
@@ -16,7 +16,7 @@ const createIcon = (displayName, iconData) => {
16
16
  */
17
17
  (
18
18
  {
19
- color = 'currentColor',
19
+ color,
20
20
  secondaryColor,
21
21
  size = 24,
22
22
  weight = 'Outline',
@@ -33,12 +33,10 @@ const createIcon = (displayName, iconData) => {
33
33
  html = html.replace(/stroke-width="[^"]*"/g, `stroke-width="${strokeWidth}"`);
34
34
  }
35
35
 
36
- // Handle currentColor for React Native
37
- const processedColor = color === 'currentColor' ? '#000000' : color;
38
-
39
- // Replace currentColor in SVG with actual color
40
- html = html.replace(/currentColor/g, processedColor);
41
-
36
+ if (color != null) {
37
+ html = html.replace(/currentColor/g, color);
38
+ }
39
+
42
40
  // Replace secondary color placeholder if present
43
41
  if (secondaryColor) {
44
42
  html = html.replace(/__RI_SECONDARY__/g, secondaryColor);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reicon-react-native",
3
- "version": "1.0.101",
3
+ "version": "1.0.102",
4
4
  "type": "module",
5
5
  "description": "React Native icon components for 2674+ icons in 2 weights (Outline & Filled). Tree-shakeable, TypeScript-ready.",
6
6
  "main": "./index.js",