-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getting error in some android devices when cropping the images #148
Comments
@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. 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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: