@popp0102/nova 0.2.2 → 0.2.3

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.
@@ -6,15 +6,16 @@ export default function Badge({
6
6
  leftIcon,
7
7
  rightIcon,
8
8
  iconSize = 20,
9
- iconColor = 'white',
9
+ color = 'white',
10
+ backgroundColor = 'blue',
10
11
  style
11
12
  }) {
12
13
  return (
13
14
  <View style={style}>
14
- <View style={styles.container}>
15
- {leftIcon && <MaterialIcons name={leftIcon} size={iconSize} color={iconColor} />}
16
- <Text style={styles.text}>{children}</Text>
17
- {rightIcon && <MaterialIcons name={rightIcon} size={iconSize} color={iconColor} />}
15
+ <View style={[styles.container, { backgroundColor }]}>
16
+ {leftIcon && <MaterialIcons name={leftIcon} size={iconSize} color={color} />}
17
+ <Text style={[styles.text, { color }]}>{children}</Text>
18
+ {rightIcon && <MaterialIcons name={rightIcon} size={iconSize} color={color} />}
18
19
  </View>
19
20
  </View>
20
21
  );
@@ -27,11 +28,9 @@ const styles = StyleSheet.create({
27
28
  gap: 4,
28
29
  padding: 8,
29
30
  borderRadius: 24,
30
- backgroundColor: "blue",
31
31
  alignSelf: "flex-start",
32
32
  },
33
33
  text: {
34
- color: "white",
35
34
  fontSize: 16,
36
35
  },
37
36
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popp0102/nova",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "React Native component library",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.js",