React-native-image-crop-picker: ios bug(Call the selection picture on the iOS platform, it will pop up the first time, but not the second time)

Created on 7 Jul 2020  Â·  2Comments  Â·  Source: ivpusic/react-native-image-crop-picker

ImagePicker.openPicker({
// cropperActiveWidgetColor: '#36B7AB',
cropperStatusBarColor: '#36B7AB',
cropperToolbarColor: '#36B7AB',
// cropperCircleOverlay: true,
width: 400,
height: 400,
cropping: true
}).then(image => {

            console.log(image)
        });

Most helpful comment

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.

All 2 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xuchao321 picture xuchao321  Â·  3Comments

leelandclay picture leelandclay  Â·  3Comments

phantom1299 picture phantom1299  Â·  3Comments

pavsidhu picture pavsidhu  Â·  3Comments

victorwpbastos picture victorwpbastos  Â·  3Comments