@umituz/react-native-design-system 2.9.34 → 2.9.35

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": "2.9.34",
3
+ "version": "2.9.35",
4
4
  "description": "Universal design system for React Native apps - Consolidated package with atoms, molecules, organisms, theme, typography, responsive, safe area, exception, infinite scroll, UUID, image, timezone, offline, onboarding, and loading utilities",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -106,15 +106,18 @@ export const CircularMenu: React.FC<CircularMenuProps> = ({
106
106
  <CircularMenuBackground />
107
107
 
108
108
  <View style={styles.itemsContainer}>
109
- {layoutItems.map((item) => (
110
- <View key={item.id} style={item.position as ViewStyle}>
111
- <CircularMenuItem
112
- icon={item.icon}
113
- label={item.label}
114
- onPress={item.onPress}
115
- />
116
- </View>
117
- ))}
109
+ {layoutItems.map((item) => {
110
+ if (!item.icon || !item.label || !item.onPress) return null;
111
+ return (
112
+ <View key={item.id} style={item.position as ViewStyle}>
113
+ <CircularMenuItem
114
+ icon={item.icon}
115
+ label={item.label}
116
+ onPress={item.onPress}
117
+ />
118
+ </View>
119
+ );
120
+ })}
118
121
 
119
122
  <View style={styles.closeButton}>
120
123
  <CircularMenuCloseButton onPress={onClose} />