Open zengqinghua1 opened 4 years ago
hi, Maybe your ImagePicker inside to Modal parent
This issue is described poorly. Please make more effort to explain what's happening, when, etc. Also, check if your code is formatted correctly.
If you are also experiencing that the Picker is opening and closing immediately, check the parent component and it's lifecycle. If it is for example React Native's Modal component (as @codebetterme suggests), check that the modal is not closed before the callback function is triggered. In your case, the modal should be closed after your console.log(image)
printing.
i have this issue too
ImagePicker.openPicker({ // cropperActiveWidgetColor: '#36B7AB', cropperStatusBarColor: '#36B7AB', cropperToolbarColor: '#36B7AB',
// cropperCircleOverlay: true, width: 400, height: 400, cropping: true }).then(image => {