mg-library 1.0.456 → 1.0.458
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 +8 -3
- package/package.json +1 -1
package/blocks.js
CHANGED
@@ -432,8 +432,8 @@ export function MGCamera(props) {
|
|
432
432
|
status='primary'
|
433
433
|
accessoryLeft={FlipIcon}
|
434
434
|
onPress={() => {
|
435
|
-
|
436
|
-
|
435
|
+
setFacing(
|
436
|
+
facing === 'back' ? 'front' : 'back'
|
437
437
|
)
|
438
438
|
}}>
|
439
439
|
<Text>{mgFunctionsLib.i18nString('doInvertCamera', props.language)}</Text>
|
@@ -455,7 +455,12 @@ export function MGCamera(props) {
|
|
455
455
|
<View>
|
456
456
|
<Card header={cardHeader} footer={cardFooter}>
|
457
457
|
<View style={{ alignItems: 'center' }}>
|
458
|
-
<CameraView
|
458
|
+
<CameraView
|
459
|
+
style={{ width: captureWidth, height: captureHeight }}
|
460
|
+
facing={facing}
|
461
|
+
ref={(r) => {
|
462
|
+
camera = r
|
463
|
+
}}>
|
459
464
|
</CameraView>
|
460
465
|
</View>
|
461
466
|
</Card>
|