react-native-image-crop-picker
react-native-image-crop-picker copied to clipboard
Android: Improve error message for cropping failures by including UCrop error details
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