Open vivek-oyela opened 8 months ago
@vivek-oyela Could you please provide the next things:
@vivek-oyela ping
I am getting that error in Firebase Crashlytics. It's just that object. Android versions are 11, 13, and 14.
I am using this way
for (let i = 0; i < rawImages.length; i++) {
let cropRatio: any = {};
if (rawImages[i]?.hasOwnProperty('cropData')) {
cropRatio = rawImages[i]?.cropData;
} else {
cropRatio = calculateImgOffsetAndSize({
imgHeight: rawImages[i]?.height,
imgWidth: rawImages[i]?.width,
rHeight: imageCropperProps.height,
rWidth: imageCropperProps.width,
});
}
const {uri} = await ImageEditor.cropImage(rawImages[i]?.uri, {
...cropRatio,
});
newImages.push({
...rawImages[i],
cropData: cropRatio,
croppedUri: uri,
});
}
This error is mostly on Samsung and Xiaomi devices.
Environment
React native - 0.72.6 react-native-image-editor - 4.0.0
Description
Getting an error in crashlytics when trying to crop the image in Android. This issue is coming in some Samsung and xiaomi devices.