mg-library 1.0.470 → 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 +17 -2
- package/package.json +1 -1
package/blocks.js
CHANGED
@@ -452,7 +452,7 @@ export function MGCamera(props) {
|
|
452
452
|
</View>
|
453
453
|
</View>
|
454
454
|
);
|
455
|
-
|
455
|
+
/* return (
|
456
456
|
<View style={{ flex: 1, flexGrow: 0.8, justifyContent: 'flex-start', alignItems: 'center' }}>
|
457
457
|
<Card style={{ flex: 1, flexGrow: 1 }} header={cardHeader} footer={cardFooter}>
|
458
458
|
<View style={{ alignItems: 'center' }}>
|
@@ -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) {
|