I am trying to select multiple images for upload in my react native project using expo image picker which works. but I intend to allow a user select multiple images for upload at once but it only selects one picture from gallery. I have checked their official doc and I can't seem to find the use case.
This is how I call image picker.
const pickImage = async () => {
let result = await ImagePicker.launchImageLibraryAsync({
mediaTypes: ['images'],
allowsMultipleSelection: true, //tried this
allowsEditing: true,
quality: 1,
selectionLimit: 0, // and this too
});
//console.log(result);
if (!result.cancelled) {
setImage(result.uri);
}
};
this is the version of image picker installed
"expo-image-picker": "~16.0.6"