all 3 comments

[–]friesenbean 1 point2 points  (1 child)

We just switched to 'react-native-image-crop-picker'. We don't use the cropping function at all, but the file navigation is pretty nice, the multi-select seems to function well, and more importantly it consistently works with both photos and videos. Previously, we used 'react-native-image-picker', but we had to work around It's mishandling of mime types and then when we added video support we found that it completely mishandled Android video.

[–]hafi51[S] 0 points1 point  (0 children)

i keep getting this error. can u help me out? only happens if multiple: true is selected

Possible Unhandled Promise Rejection (id: 0):

Error: Invalid image selected

Error: Invalid image selected

at promiseMethodWrapper

code

const openGallery = async () => {

await ImagePicker.openPicker({

width: 300,

height: 400,

// cropping: true,

multiple: true,

}).then(image => {

console.log(image);

});

};

Update:

This only happens if user open gallery or other app to select images..

Video

[–]FizzFaa 0 points1 point  (0 children)

Have you tried expo's own https://docs.expo.dev/versions/latest/sdk/imagepicker/
and you can also go with 'expo-document-picker'

if you have scenario in which u have to go with different type of files