react-native-image-crop-picker icon indicating copy to clipboard operation
react-native-image-crop-picker copied to clipboard

Android: Improve error message for cropping failures by including UCrop error details

Open irekrog opened this issue 3 months ago • 0 comments

Description

Improved error handling in the Android crop result handler to provide more specific error messages when image cropping fails.

Changes

  • Enhanced error message in croppingResult() method to include specific UCrop error details when available
  • Changed generic "Cannot find image data" message to include the actual UCrop error or specify that output URI is null
  • Better debugging experience for developers when cropping operations fail

Before

Cannot find image data

After

Cannot find image data. UCrop error: [specific error message]

example: Cannot find image data. UCrop error: x must be >= 0

irekrog avatar Sep 11 '25 06:09 irekrog