react-native-demo-library-by-rinkal 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.
Files changed (3) hide show
  1. package/Readme.md +3 -0
  2. package/index.js +39 -0
  3. package/package.json +16 -0
package/Readme.md ADDED
@@ -0,0 +1,3 @@
1
+ Hello
2
+ This is my first library.
3
+ I have added card component by using this library you can use TaskCard component, Pass title and description in it.
package/index.js ADDED
@@ -0,0 +1,39 @@
1
+
2
+
3
+ import React from 'react';
4
+ import { StyleSheet, Text, View } from 'react-native';
5
+
6
+
7
+ const TaskCard = ({ title, description }:{ title: string; description: string }) => {
8
+ return (
9
+ <View style={styles.card}>
10
+ <Text style={styles.cardTitle}>{title}</Text>
11
+ <Text style={styles.cardDescription}>{description}</Text>
12
+ </View>
13
+ );
14
+ };
15
+
16
+ const styles = StyleSheet.create({
17
+ card: {
18
+ backgroundColor: '#fff',
19
+ padding: 20,
20
+ borderRadius: 16,
21
+ marginBottom: 16,
22
+ shadowColor: '#000',
23
+ shadowOpacity: 0.1,
24
+ shadowRadius: 8,
25
+ shadowOffset: { width: 0, height: 4 },
26
+ elevation: 4,
27
+ },
28
+ cardTitle: {
29
+ fontSize: 20,
30
+ fontWeight: '700',
31
+ color: '#2C3A47',
32
+ marginBottom: 8,
33
+ },
34
+ cardDescription: {
35
+ fontSize: 16,
36
+ color: '#596275',
37
+ lineHeight: 22,
38
+ }
39
+ });
package/package.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "react-native-demo-library-by-rinkal",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "license": "ISC",
6
+ "author": "rinkal",
7
+ "type": "commonjs",
8
+ "main": "index.js",
9
+ "peerDependencies": {
10
+ "react": "18.2.0",
11
+ "react-native": "0.71.8"
12
+ },
13
+ "scripts": {
14
+ "test": "echo \"Error: no test specified\" && exit 1"
15
+ }
16
+ }