react-native-expo-cropper 1.0.11 → 1.0.12

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.
@@ -243,9 +243,10 @@ var ImageCropper = function ImageCropper(_ref) {
243
243
  });
244
244
  case 2:
245
245
  _context.n = 3;
246
- return (0, _reactNativeViewShot.captureRef)(viewRef, {
246
+ return (0, _reactNativeViewShot.captureRef)(viewRef.current, {
247
247
  format: 'png',
248
- quality: 1
248
+ quality: 1,
249
+ result: 'tmpfile'
249
250
  });
250
251
  case 3:
251
252
  capturedUri = _context.v;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-expo-cropper",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "Recadrage polygonal d'images.",
5
5
  "main": "index.js",
6
6
  "author": "PCS AGRI",
@@ -189,9 +189,10 @@ const ImageCropper = ({ onConfirm, openCameraFirst, initialImage ,addheight}) =>
189
189
  const name = `IMAGE XTK${Date.now()}.png`;
190
190
  try {
191
191
  await new Promise((resolve) => requestAnimationFrame(resolve));
192
- const capturedUri = await captureRef(viewRef, {
192
+ const capturedUri = await captureRef(viewRef.current, {
193
193
  format: 'png',
194
194
  quality: 1,
195
+ result: 'tmpfile',
195
196
  });
196
197
  resultUri = await enhanceImage(capturedUri ,addheight);
197
198
  } catch (error) {