react-native-documents / document-picker

Document Picker for React Native
https://react-native-documents.github.io/
MIT License
1.35k stars 440 forks source link

allowMultiSelection doesn't work on iOS 15 #727

Open VadymVashchuk opened 4 months ago

VadymVashchuk commented 4 months ago

Thank you for such a nice package! I have encountered a bug. As mentioned above, I am trying to pick multiple files on iOS 15 (on a real device). On iOS 17, it works fine (both on a real device and a simulator), but on iOS 15, it seems like the OS is ignoring this property and I can only pick a single file.

My code:

  const pickerResult = await DocumentPicker.pick({
    presentationStyle: 'pageSheet',
    copyTo: 'cachesDirectory',
    allowMultiSelection: true,
  });

It returns an array with only one element. In the UI, I can't see any checkboxes, and after I click on a file, it closes. I am using 9.3.0 version of package. I am talking only about public version of document-picker.