mg-library 1.0.405 → 1.0.407

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 +5 -3
  2. package/package.json +1 -1
package/blocks.js CHANGED
@@ -246,7 +246,9 @@ export function MGCurrentAccount(props) {
246
246
  }
247
247
 
248
248
  export function MGCamera(props) {
249
- let camera;
249
+ let camera;
250
+ let captureWidth = 205;
251
+ let captureHeight = 275;
250
252
  const __takePicture = async () => {
251
253
  if (!camera)
252
254
  return;
@@ -254,7 +256,7 @@ export function MGCamera(props) {
254
256
  props.dispatch(props.actions.startProcessing());
255
257
  photo = await ImageManipulator.manipulateAsync(
256
258
  photo.uri,
257
- [{ resize: { width: 205, height: 275 } }],
259
+ [{ resize: { width: captureWidth, height: captureHeight } }],
258
260
  { compress: 1, format: ImageManipulator.SaveFormat.JPEG }
259
261
  );
260
262
  photo = await ImageManipulator.manipulateAsync(
@@ -318,7 +320,7 @@ export function MGCamera(props) {
318
320
  <Card header={cardHeader} footer={cardFooter}>
319
321
  <View style={{ alignItems: 'center' }}>
320
322
  <Camera
321
- style={{ width: 205, height: 275 }}
323
+ style={{ width: captureWidth, height: captureHeight }}
322
324
  type={type}
323
325
  ref={(r) => {
324
326
  camera = r
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.405",
3
+ "version": "1.0.407",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {