mg-library 1.0.415 → 1.0.417

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 +7 -14
  2. package/package.json +1 -1
package/blocks.js CHANGED
@@ -53,7 +53,7 @@ export function MGWelcome(props) {
53
53
  <MaterialCommunityIcons name='alert-circle-outline' color={props.theme['color-primary-500']} size={30} style={{ flex: 1 }} />
54
54
  }
55
55
  </View>
56
- <View>
56
+ <View style={{marginHorizontal: 5}}>
57
57
  <Text category='h6'>{item.description}</Text>
58
58
  <Text style={{ marginBottom: 10 }} category='c1'>{mgFunctionsLib.getDateForExposition(item.noticeDate, props.language)}, {item.noticeTime._asTime()}</Text>
59
59
  </View>
@@ -251,32 +251,25 @@ export function MGCurrentAccount(props) {
251
251
  )
252
252
  }
253
253
 
254
- export function getWidthForCamera() {
254
+ function getWidthForCamera() {
255
255
  return Dimensions.get('window').width;
256
256
  }
257
257
 
258
- export function getHeightForCamera() {
258
+ function getHeightForCamera() {
259
259
  return Dimensions.get('window').height;
260
260
  }
261
261
 
262
262
  export function MGCamera(props) {
263
263
  let camera;
264
-
265
- let captureWidth = 205;
266
- let captureHeight = 275;
267
-
264
+ let captureWidth = 0;
265
+ let captureHeight = 0;
268
266
  try {
269
267
  captureWidth = Math.floor(getWidthForCamera() * 0.47);
270
268
  captureHeight = Math.floor(getHeightForCamera() * 0.31);
271
269
  } catch (error) {
272
- let captureWidth = 205;
273
- let captureHeight = 275;
270
+ captureWidth = 205;
271
+ captureHeight = 275;
274
272
  }
275
-
276
- console.log(captureWidth);
277
- console.log(captureHeight);
278
- console.log(Dimensions.get('window').scale);
279
-
280
273
  const __takePicture = async () => {
281
274
  if (!camera)
282
275
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.415",
3
+ "version": "1.0.417",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {