react-native-documents/document-picker

allowMultiSelection doesn't work on iOS 15

VadymVashchuk opened this issue · 0 comments

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.