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