react-native-demo-library-by-rinkal 1.2.0 → 1.2.2
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/TaskCard.tsx +3 -3
- package/TaskDemoCard.tsx +10 -0
- package/index.js +4 -1
- package/package.json +1 -1
package/TaskCard.tsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { View, Text } from 'react-native';
|
|
2
|
-
const TaskCard = () => {
|
|
2
|
+
const TaskCard = ({title}: {title: string}) => {
|
|
3
3
|
return (
|
|
4
4
|
<View style={{ padding: 10, borderWidth: 1, borderColor: '#ccc', borderRadius: 5, margin: 5 }}>
|
|
5
|
-
<Text style={{ fontWeight: 'bold', fontSize: 16 }}>
|
|
6
|
-
<Text style={{ fontSize: 14 }}>
|
|
5
|
+
<Text style={{ fontWeight: 'bold', fontSize: 16 }}>{title}</Text>
|
|
6
|
+
<Text style={{ fontSize: 14 }}>{title}</Text>
|
|
7
7
|
</View>
|
|
8
8
|
);
|
|
9
9
|
};
|
package/TaskDemoCard.tsx
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { View, Text } from 'react-native';
|
|
2
|
+
const TaskDemoCard = () => {
|
|
3
|
+
return (
|
|
4
|
+
<View style={{ padding: 10, borderWidth: 1, borderColor: '#ccc', borderRadius: 5, margin: 5 }}>
|
|
5
|
+
<Text style={{ fontWeight: 'bold', fontSize: 16 }}>Demo Task</Text>
|
|
6
|
+
<Text style={{ fontSize: 14 }}>This is a demo task description.</Text>
|
|
7
|
+
</View>
|
|
8
|
+
);
|
|
9
|
+
};
|
|
10
|
+
export default TaskDemoCard;
|
package/index.js
CHANGED