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.
Files changed (2) hide show
  1. package/blocks.js +8 -3
  2. 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
- setType(
436
- type === Camera.Constants.Type.back ? Camera.Constants.Type.front : Camera.Constants.Type.back
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 style={{ width: captureWidth, height: captureHeight }} facing={facing}>
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>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.456",
3
+ "version": "1.0.458",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {