@umituz/react-native-design-system 1.5.27 → 1.5.28

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-design-system",
3
- "version": "1.5.27",
3
+ "version": "1.5.28",
4
4
  "description": "Universal design system for React Native apps - Domain-Driven Design architecture with Material Design 3 components",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./dist/index.d.ts",
@@ -193,7 +193,7 @@ export const AtomicButton: React.FC<AtomicButtonProps> = ({
193
193
  <View style={styles.content}>
194
194
  {showIcon ? (
195
195
  <Icon
196
- name={icon}
196
+ name={typeof icon === 'string' ? icon : String(icon)}
197
197
  customSize={config.iconSize}
198
198
  customColor={typeof iconColor === 'string' ? iconColor : undefined}
199
199
  style={styles.icon}
@@ -231,7 +231,7 @@ export const AtomicInput: React.FC<AtomicInputProps> = ({
231
231
  {leadingIcon && (
232
232
  <View style={styles.leadingIcon}>
233
233
  <AtomicIcon
234
- name={leadingIcon}
234
+ name={typeof leadingIcon === 'string' ? leadingIcon : String(leadingIcon)}
235
235
  customSize={config.iconSize}
236
236
  customColor={iconColor}
237
237
  />
@@ -283,7 +283,7 @@ export const AtomicInput: React.FC<AtomicInputProps> = ({
283
283
  disabled={!onTrailingIconPress}
284
284
  >
285
285
  <AtomicIcon
286
- name={trailingIcon}
286
+ name={typeof trailingIcon === 'string' ? trailingIcon : String(trailingIcon)}
287
287
  customSize={config.iconSize}
288
288
  customColor={iconColor}
289
289
  />