@marvelfight/react-native-hello-box 1.0.0

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/README.md ADDED
File without changes
package/package.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "@marvelfight/react-native-hello-box",
3
+ "version": "1.0.0",
4
+ "description": "A simple reusable React Native HelloBox component",
5
+ "main": "src/index.js",
6
+ "license": "MIT",
7
+ "keywords": [
8
+ "react-native",
9
+ "ui",
10
+ "component"
11
+ ],
12
+ "peerDependencies": {
13
+ "react": ">=16.8.0",
14
+ "react-native": ">=0.60.0"
15
+ }
16
+ }
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import { View, Text, StyleSheet } from 'react-native';
3
+
4
+ const HelloBox = ({ text = 'Hello from my package!' }) => {
5
+ return (
6
+ <View style={styles.box}>
7
+ <Text style={styles.text}>{text}</Text>
8
+ </View>
9
+ );
10
+ };
11
+
12
+ const styles = StyleSheet.create({
13
+ box: {
14
+ padding: 12,
15
+ backgroundColor: '#4CAF50',
16
+ borderRadius: 8,
17
+ },
18
+ text: {
19
+ color: '#fff',
20
+ fontSize: 16,
21
+ textAlign: 'center',
22
+ },
23
+ });
24
+
25
+ export default HelloBox;
package/src/index.js ADDED
@@ -0,0 +1 @@
1
+ export { default } from './HelloBox';