Cropper is not showing when multiple is set to true
Version
- react-native-image-crop-picker v0.25.2
- react-native v0.65.1
Platform
- Android
Expected behaviour
Show Cropper view when multiple is set to true
Actual behaviour
when multiple is set to false after picking image Cropper is showing but not when multiple is true
Steps to reproduce
just set
{
multiple: true,
cropping: true,
}
Same issue here !
Same issue facing
When the multiple is true the cropper frame doesn't show up.
Same Issue
I adjusted the package to enable cropping if the user selects only one image while multiple flag is true. I think this would be a better solution till we make a full solution to crop all images. If you find this a good idea, It would be my pleasure to make a PR with it.
Thanks for your support, for now, yes please make a PR. But I am looking forward to full solutions to crop all images.
Just to share my solution with the 0.25.3 release (as i'm on 0.60.x RN version) and can't wait for this fix:
ImagePicker.openPicker({
...imagePickerOptions,
compressImageMaxWidth: 1000,
compressImageMaxHeight: 1000,
multiple: true,
mediaType: 'photo',
}).then(async images => {
const result = [];
for (const image of images) {
result.push(
await ImagePicker.openCropper({
path: image.path,
width: 1000,
height: 1000,
})
);
}
return result;
});
HPH
https://github.com/ivpusic/react-native-image-crop-picker/issues/1344#issuecomment-687113083
Any updates on this?
Also interested in this feature