mg-library 1.0.494 → 1.0.496
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/blocks.js +6 -3
- package/package.json +1 -1
package/blocks.js
CHANGED
@@ -74,6 +74,9 @@ export function MGWelcome(props) {
|
|
74
74
|
);
|
75
75
|
}
|
76
76
|
|
77
|
+
const widthProportion = '70%';
|
78
|
+
const heightProportion = '70%';
|
79
|
+
|
77
80
|
return (
|
78
81
|
<View style={mgFunctionsLib.getBasicStyleSheet().availableArea}>
|
79
82
|
<FlatList
|
@@ -81,11 +84,11 @@ export function MGWelcome(props) {
|
|
81
84
|
keyExtractor={item => item.idNotice.toString()}
|
82
85
|
renderItem={({ item }) => (
|
83
86
|
<Card header={cardHeader(item)} style={{ marginBottom: 10, marginHorizontal: 10 }}>
|
84
|
-
{
|
87
|
+
{item.imageUrl != undefined &&
|
85
88
|
<View style={{ flexGrow: 1, alignItems: 'center', marginBottom: 10 }}>
|
86
|
-
<Image source={{ uri: item.imageUrl }} style={{ width:
|
89
|
+
<Image source={{ uri: item.imageUrl }} style={{ width: widthProportion, height: heightProportion }} />
|
87
90
|
</View>
|
88
|
-
}
|
91
|
+
}
|
89
92
|
<Text>
|
90
93
|
<Text style={{ marginBottom: 10 }}>{item.content}</Text>
|
91
94
|
</Text>
|