react-native-demo-library-by-rinkal 1.1.4 → 1.1.6

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/.bablerc ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "presets": ["module:metro-react-native-babel-preset"]
3
+ }
package/.gitingnore ADDED
@@ -0,0 +1,11 @@
1
+ # Logs
2
+ *.log
3
+ npm-debug.log
4
+
5
+ # Runtime data
6
+ tmp
7
+ build
8
+ dist
9
+
10
+ # Dependency directory
11
+ node_modules
package/TaskCard.js ADDED
@@ -0,0 +1,10 @@
1
+ import { View, Text, StyleSheet } from 'react-native';
2
+ const TaskCard = () => {
3
+ return (
4
+ <View>
5
+ <Text>Hello</Text>
6
+ <Text>This is a task description from library.</Text>
7
+ </View>
8
+ );
9
+ };
10
+ export default TaskCard;
package/index.js CHANGED
@@ -1,37 +1,2 @@
1
- import { StyleSheet, Text, View } from 'react-native';
2
-
3
-
4
- const TaskCard = () => {
5
- return (
6
- <View style={styles.card}>
7
- <Text style={styles.cardTitle}>Hello</Text>
8
- <Text style={styles.cardDescription}>This is a task description from library.</Text>
9
- </View>
10
- );
11
- };
12
-
13
- export default TaskCard;
14
- const styles = StyleSheet.create({
15
- card: {
16
- backgroundColor: '#fff',
17
- padding: 20,
18
- borderRadius: 16,
19
- marginBottom: 16,
20
- shadowColor: '#000',
21
- shadowOpacity: 0.1,
22
- shadowRadius: 8,
23
- shadowOffset: { width: 0, height: 4 },
24
- elevation: 4,
25
- },
26
- cardTitle: {
27
- fontSize: 20,
28
- fontWeight: '700',
29
- color: '#2C3A47',
30
- marginBottom: 8,
31
- },
32
- cardDescription: {
33
- fontSize: 16,
34
- color: '#596275',
35
- lineHeight: 22,
36
- }
37
- });
1
+ import TaskCard from "./TaskCard";
2
+ export const TaskCard = TaskCard;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-demo-library-by-rinkal",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "rinkal",
@@ -12,5 +12,8 @@
12
12
  },
13
13
  "scripts": {
14
14
  "test": "echo \"Error: no test specified\" && exit 1"
15
+ },
16
+ "devDependencies": {
17
+ "metro-react-native-babel-preset": "^0.77.0"
15
18
  }
16
19
  }