响应本机图像裁剪器需要裁剪的图像和原始图像

时间:2020-10-09 14:09:59

标签: react-native

我是本机反应的新手。我需要裁剪的图像和原始图像。目前我正在做

 import IP from 'react-native-image-picker';
 import ImagePicker from 'react-native-image-crop-picker';

 IP.launchCamera(options, (response) => {
      var capturedPic = response && response.uri && response.uri.toString();
      if (capturedPic) {
        console.log('Capurted Path:' + capturedPic);
        ImagePicker.openCropper({
          path: capturedPic,
          width: 300,
          height: 120,
          cropping: true,
          hideBottomControls: true,
          useFrontCamera: false,
        }).then((image) => {
          let source = image.path;
        });
      }
    });

但是这会在裁剪时的图像选择器之间造成几毫秒的波动。 因此,react-native-image-crop-picker是否可以同时返回两个源URI?

谢谢。

0 个答案:

没有答案