mg-library 1.0.464 → 1.0.466

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 +20 -20
  2. package/package.json +1 -1
package/blocks.js CHANGED
@@ -452,27 +452,20 @@ export function MGCamera(props) {
452
452
  </View>
453
453
  );
454
454
  return (
455
- <View style={{backgroundColor: 'green'}}>
456
- <View style={{ flex: 1, flexDirection: 'column', justifyContent: 'flex-start', alignContent: 'flex-start', backgroundColor: 'red', alignItems: 'center' }}>
457
- <Text>{mgFunctionsLib.i18nString('doTakePhoto', props.language)}</Text>
458
- </View>
455
+ <View style={{ flex: 1, justifyContent: 'flex-start', backgroundColor: 'red', alignItems: 'center' }}>
456
+ <Card header={cardHeader} footer={cardFooter}>
457
+ <View style={{ alignItems: 'center' }}>
458
+ <CameraView
459
+ style={{ width: captureWidth, height: captureHeight }}
460
+ facing={facing}
461
+ ref={(r) => {
462
+ camera = r
463
+ }}>
464
+ </CameraView>
465
+ </View>
466
+ </Card>
459
467
  </View>
460
468
  )
461
- /* return (
462
- <View style={{ flex: 1, justifyContent: 'flex-start', backgroundColor: 'red', alignItems: 'center' }}>
463
- <Card header={cardHeader} footer={cardFooter}>
464
- <View style={{ alignItems: 'center' }}>
465
- <CameraView
466
- style={{ width: captureWidth, height: captureHeight }}
467
- facing={facing}
468
- ref={(r) => {
469
- camera = r
470
- }}>
471
- </CameraView>
472
- </View>
473
- </Card>
474
- </View>
475
- ) */
476
469
  }
477
470
 
478
471
  export function MGCameraPreview(props) {
@@ -617,8 +610,15 @@ export function MGGoBack(props) {
617
610
  color={props.theme['color-primary-500']}
618
611
  onPress={() => props.process.goBack()} />
619
612
  );
613
+ /* return (
614
+ <View style={{ flexGrow: 1, alignItems: 'flex-start', marginTop: -20 }}>
615
+ <Button
616
+ appearance='ghost'
617
+ accessoryLeft={goBackIcon} />
618
+ </View>
619
+ ) */
620
620
  return (
621
- <View style={{ flexGrow: 1, alignItems: 'flex-start', marginTop: -20 }}>
621
+ <View style={{ alignItems: 'flex-start', marginTop: -20 }}>
622
622
  <Button
623
623
  appearance='ghost'
624
624
  accessoryLeft={goBackIcon} />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.464",
3
+ "version": "1.0.466",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {