mg-library 1.0.469 → 1.0.472
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 +19 -4
- package/package.json +1 -1
package/blocks.js
CHANGED
@@ -452,9 +452,9 @@ export function MGCamera(props) {
|
|
452
452
|
</View>
|
453
453
|
</View>
|
454
454
|
);
|
455
|
-
|
456
|
-
<View style={{ flex: 1, justifyContent: 'flex-start', alignItems: 'center' }}>
|
457
|
-
<Card style={{ flex: 1, flexGrow:
|
455
|
+
/* return (
|
456
|
+
<View style={{ flex: 1, flexGrow: 0.8, justifyContent: 'flex-start', alignItems: 'center' }}>
|
457
|
+
<Card style={{ flex: 1, flexGrow: 1 }} header={cardHeader} footer={cardFooter}>
|
458
458
|
<View style={{ alignItems: 'center' }}>
|
459
459
|
<CameraView
|
460
460
|
style={{ width: captureWidth, height: captureHeight }}
|
@@ -466,7 +466,22 @@ export function MGCamera(props) {
|
|
466
466
|
</View>
|
467
467
|
</Card>
|
468
468
|
</View>
|
469
|
-
)
|
469
|
+
) */
|
470
|
+
return (
|
471
|
+
<View>
|
472
|
+
<Card header={cardHeader} footer={cardFooter}>
|
473
|
+
<View style={{ alignItems: 'center' }}>
|
474
|
+
<CameraView
|
475
|
+
style={{ width: captureWidth, height: captureHeight }}
|
476
|
+
facing={facing}
|
477
|
+
ref={(r) => {
|
478
|
+
camera = r
|
479
|
+
}}>
|
480
|
+
</CameraView>
|
481
|
+
</View>
|
482
|
+
</Card>
|
483
|
+
</View>
|
484
|
+
)
|
470
485
|
}
|
471
486
|
|
472
487
|
export function MGCameraPreview(props) {
|