Closed sergiulucaci closed 4 years ago
I will check it. It is a warning or an error message?
No red screen, just a console warning, but onDone handler is never called.
Edited
This is how it looks like. Flow:
It does not happen to me.
I added an image to emulator gallery:
Then, I used it as the cropper uri:
<AmazingCropper
onDone={this.onDone}
onCancel={this.onCancel}
imageUri='file:///storage/emulated/0/Download/shoot.png'
imageWidth={436}
imageHeight={714}
NOT_SELECTED_AREA_OPACITY={0.3}
BORDER_WIDTH={20}
/>
After that, I pressed the Done
button and onDone
was invoked as it should:
I added onError
handler, you could use it to find what's the problem in your case.
Whenever I try to crop an image from Android Gallery's emulator - (I am using Genymotion; though, on real device it seems to work) I get this:
Any idea?