mg-library 1.0.499 → 1.0.501

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 (2) hide show
  1. package/blocks.js +25 -2
  2. package/package.json +1 -1
package/blocks.js CHANGED
@@ -74,6 +74,29 @@ export function MGWelcome(props) {
74
74
  );
75
75
  }
76
76
 
77
+ /* return (
78
+ <View style={mgFunctionsLib.getBasicStyleSheet().availableArea}>
79
+ <FlatList
80
+ data={props.notices}
81
+ keyExtractor={item => item.idNotice.toString()}
82
+ renderItem={({ item }) => (
83
+ <Card header={cardHeader(item)} style={{ marginBottom: 10, marginHorizontal: 10 }}>
84
+ {item.imageUrl != undefined &&
85
+ <View style={{ flexGrow: 1, alignItems: 'center', marginBottom: 10 }}>
86
+ <Image source={{ uri: item.imageUrl }} style={{ width: '50%', height: '50%' }} />
87
+ </View>
88
+ }
89
+ <Text>
90
+ <Text style={{ marginBottom: 10 }}>{item.content}</Text>
91
+ </Text>
92
+ </Card>
93
+ )}
94
+ ListHeaderComponent={listHeaderComponent}
95
+ ListFooterComponent={listFooterComponent}
96
+ />
97
+ </View>
98
+ ) */
99
+
77
100
  return (
78
101
  <View style={mgFunctionsLib.getBasicStyleSheet().availableArea}>
79
102
  <FlatList
@@ -82,8 +105,8 @@ export function MGWelcome(props) {
82
105
  renderItem={({ item }) => (
83
106
  <Card header={cardHeader(item)} style={{ marginBottom: 10, marginHorizontal: 10 }}>
84
107
  {item.imageUrl != undefined &&
85
- <View style={{ flex: 1, flexGrow: 1, alignItems: 'center', marginBottom: 10 }}>
86
- <Image source={{ uri: item.imageUrl }} style={{ width: '50%', height: '50%' }} />
108
+ <View style={{ flexGrow: 1, alignItems: 'center', marginBottom: 10 }}>
109
+ <Image source={{ uri: item.imageUrl }} style={{ transform: scale(0.5) }} />
87
110
  </View>
88
111
  }
89
112
  <Text>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.499",
3
+ "version": "1.0.501",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {