mg-library 1.0.521 → 1.0.523

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 CHANGED
@@ -146,8 +146,8 @@ export function MGBenefits(props) {
146
146
  </View>
147
147
  }
148
148
  <View style={{ flexGrow: 1, alignItems: 'center', marginBottom: 10 }}>
149
- <Text style={{flexGrow: 1, textAlign: 'center'}}>{item.content}</Text>
150
- </View>
149
+ <Text style={{ flexGrow: 1, textAlign: 'center' }}>{item.content}</Text>
150
+ </View>
151
151
  </Card>
152
152
  )}
153
153
  ListHeaderComponent={listHeaderComponent}
package/functions.js CHANGED
@@ -253,6 +253,21 @@ function showToast(config) {
253
253
  });
254
254
  }
255
255
 
256
+ export function showToastWithError(error) {
257
+ let message = '(' + error.name + ')' + ' | ' + error.message;
258
+ if (error.response != undefined)
259
+ if (error.response.data != undefined)
260
+ if (error.response.data.code != undefined)
261
+ if (error.response.data.extended_code != undefined)
262
+ if (error.response.data.message != undefined)
263
+ message = message + ' > ' + error.response.data.code + ' | ' + error.response.data.extended_code + ' | ' + error.response.data.message
264
+ let config = {
265
+ message: message,
266
+ backgroundColor: 'red'
267
+ }
268
+ showToast(config);
269
+ }
270
+
256
271
  export function showToastError(message) {
257
272
  let config = {
258
273
  message: message,
package/mg-library.rar CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.521",
3
+ "version": "1.0.523",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {