I found this issue in an app I'm doing, where the first screen is to take a photo and crop the image using the lib, and the second one is to show the cropped photo.
When user taps to go back and then click to crop again, the resulting image looks like it is cropped even more. It is not happening in Android.
A simple way to reproduce it is:
const _cropImage = async () => {
await scanner.current.cropImage();
const result = await scanner.current.cropImage(); // Called twice
// Use result.image
}
From the code above, the cropped image will not match in iOS, but will in Android
I found this issue in an app I'm doing, where the first screen is to take a photo and crop the image using the lib, and the second one is to show the cropped photo.
When user taps to go back and then click to crop again, the resulting image looks like it is cropped even more. It is not happening in Android.
A simple way to reproduce it is:
From the code above, the cropped image will not match in iOS, but will in Android