ivpusic / react-native-image-crop-picker

iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping
MIT License
6.12k stars 1.56k forks source link

Selecting photos and clicking open does not trigger callback function. #695

Open YuryKorovko opened 6 years ago

YuryKorovko commented 6 years ago

Version

Tell us which versions you are using:

Platform

Tell us to which platform this issue is related

Expected behaviour

then or catch block should be trigged.

Works well on IOS

Actual behaviour

Then or catch block is not trigged after images selected. After debugging in Android I found that onActivityResult isn't trigged. Works well on IOS

Attachments

selectProducts = () => { ImagePicker.openPicker({ multiple: true, includeBase64: true, mediaType:'photo', cropping: true, compressImageQuality : 0.6 }).then(images => { //DOESN'T WORK tested with alert and console.log this.props.navigation.navigate('NewProducts',{products:images}) }).catch(error => { //DOESN'T WORK tested with alert and console.log console.log(error, 'ERROR'); }); };

Werewolve commented 6 years ago

Any progress here? @YuryKorovko

YuryKorovko commented 6 years ago

@Werewolve Unfortunately, no. It is a very regretful fact that we cannot get any working solution.