mg-library 1.0.590 → 1.0.591
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 +25 -10
- package/package.json +1 -1
package/blocks.js
CHANGED
|
@@ -82,14 +82,29 @@ export function MGWelcome(props) {
|
|
|
82
82
|
data={props.notices}
|
|
83
83
|
keyExtractor={item => item.idNotice.toString()}
|
|
84
84
|
renderItem={({ item }) => (
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
85
|
+
|
|
86
|
+
/* <Card header={cardHeader(item)} style={{ marginBottom: 10, marginHorizontal: 10 }}>
|
|
87
|
+
{item.imageUrl != undefined &&
|
|
88
|
+
<View style={{ flexGrow: 1, alignItems: 'center', marginBottom: 10 }}>
|
|
89
|
+
<Image source={{ uri: item.imageUrl }} style={{ width: '70%', resizeMode: 'contain', height: undefined, aspectRatio: 1 }} />
|
|
90
|
+
</View>
|
|
91
|
+
}
|
|
92
|
+
<MGText style={{ marginBottom: 10 }}>{item.content}</MGText>
|
|
93
|
+
</Card> */
|
|
94
|
+
|
|
95
|
+
<Box borderWidth={1} borderColor="coolGray.200" borderRadius="md" bg="white" shadow={2} p={4} mb={4} mx={2}>
|
|
96
|
+
{cardHeader(item)}
|
|
97
|
+
{item.imageUrl !== undefined && (
|
|
98
|
+
<Box alignItems="center" mb={4}>
|
|
99
|
+
<Image
|
|
100
|
+
source={{ uri: item.imageUrl }}
|
|
101
|
+
style={{width: '70%', resizeMode: 'contain', height: undefined, aspectRatio: 1}}
|
|
102
|
+
/>
|
|
103
|
+
</Box>
|
|
104
|
+
)}
|
|
105
|
+
<MGText mb={2}>{item.content}</MGText>
|
|
106
|
+
</Box>
|
|
107
|
+
|
|
93
108
|
)}
|
|
94
109
|
ListHeaderComponent={listHeaderComponent}
|
|
95
110
|
ListFooterComponent={listFooterComponent}
|
|
@@ -261,7 +276,7 @@ export function MGLogin(props) {
|
|
|
261
276
|
render={({ field: { onChange, value } }) => (
|
|
262
277
|
<NBInput
|
|
263
278
|
size="lg"
|
|
264
|
-
py={3}
|
|
279
|
+
py={3}
|
|
265
280
|
placeholder={mgFunctionsLib.i18nString('password', props.language)}
|
|
266
281
|
onChangeText={onChange}
|
|
267
282
|
value={value}
|
|
@@ -279,7 +294,7 @@ export function MGLogin(props) {
|
|
|
279
294
|
render={({ field: { onChange, value } }) => (
|
|
280
295
|
<NBInput
|
|
281
296
|
size="lg"
|
|
282
|
-
py={3}
|
|
297
|
+
py={3}
|
|
283
298
|
placeholder={mgFunctionsLib.i18nString('password', props.language)}
|
|
284
299
|
onChangeText={onChange}
|
|
285
300
|
value={value}
|