@popp0102/nova 0.1.3 → 0.2.1

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.
@@ -0,0 +1,29 @@
1
+ import { View, Text, StyleSheet } from 'react-native';
2
+ import { Ionicons } from '@expo/vector-icons';
3
+
4
+ export default function Badge({ children, style }) {
5
+ return (
6
+ <View style={style}>
7
+ <View style={styles.container}>
8
+ <Ionicons name="checkmark-circle" color="white" size={20} />
9
+ <Text style={styles.text}>{children}</Text>
10
+ </View>
11
+ </View>
12
+ );
13
+ }
14
+
15
+ const styles = StyleSheet.create({
16
+ container: {
17
+ flexDirection: 'row',
18
+ alignItems: 'center',
19
+ gap: 4,
20
+ padding: 8,
21
+ borderRadius: 24,
22
+ backgroundColor: "blue",
23
+ alignSelf: "flex-start",
24
+ },
25
+ text: {
26
+ color: "white",
27
+ fontSize: 16,
28
+ },
29
+ });
package/lib/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  export { default as Button } from './components/Button';
2
2
  export { default as Modal } from './components/Modal';
3
+ export { default as Badge } from './components/Badge';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popp0102/nova",
3
- "version": "0.1.3",
3
+ "version": "0.2.1",
4
4
  "description": "React Native component library",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.js",
@@ -30,6 +30,7 @@
30
30
  "prepublishOnly": "npm run lint && npm run test"
31
31
  },
32
32
  "peerDependencies": {
33
+ "@expo/vector-icons": "*",
33
34
  "react": ">=18.0.0",
34
35
  "react-native": ">=0.70.0",
35
36
  "react-native-safe-area-context": ">=4.0.0"
@@ -48,5 +49,7 @@
48
49
  "react": "^18.3.1",
49
50
  "react-native": "^0.75.0",
50
51
  "react-test-renderer": "^18.3.1"
52
+ },
53
+ "dependencies": {
51
54
  }
52
55
  }