@momo-kits/foundation 0.89.1-rc.6 → 0.89.2

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/Icon/index.tsx CHANGED
@@ -18,12 +18,16 @@ const Icon: React.FC<IconProps> = ({source, size, color, style = {}}) => {
18
18
  return {uri: source};
19
19
  };
20
20
 
21
+ const tintColorProps = color !== null && {
22
+ tintColor: color ?? theme.colors.text.default
23
+ }
24
+
21
25
  return (
22
26
  <Image
23
27
  loading={false}
24
28
  source={getIconSource()}
25
29
  style={[style, {width: size, height: size}]}
26
- tintColor={color ?? theme.colors.text.default}
30
+ {...tintColorProps}
27
31
  />
28
32
  );
29
33
  };
package/Icon/types.ts CHANGED
@@ -17,7 +17,7 @@ export type IconProps = {
17
17
  * Optional. Represents the color of the icon.
18
18
  * It can be any valid color in @momo-kits/foundation.
19
19
  */
20
- color?: string;
20
+ color?: string | null;
21
21
 
22
22
  /**
23
23
  * Optional. Used to apply custom styling to the Icon component.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.89.1-rc.6",
3
+ "version": "0.89.2",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {
@@ -43,4 +43,4 @@
43
43
  },
44
44
  "author": "@momo-kits/foundation",
45
45
  "license": "ISC"
46
- }
46
+ }