When I call DocumentPicker.pickMultiple within a Modal it immediately closes and returns no results whatsoever and no error.
work around is to set a timeOut of 10ms
From the native module it seems that the modalPresentationStyle is using a class UIModalPresentationFormSheet. Is possible that is do not open if there is a modal already opened. However, i didn't find any ios documentation stating that. Nonetheless, the timeout seems to work just fine.
I have the same problem. When I open the Document Picker from Modal immediately closes.
Faced a similar problem. I found out that if you do not close modal, then picker will not close. Or close modal after selecting a file.
:wave: @FrankFundel, sorry you're having an issue. This issue is being closed because it does not provide all information required by the issue template.
As the issue template explains, we require that you provide a runnable example that reproduces your issue and your environment information. This means you need to provide a git repository with code that reproduces the issue.
The reason is that maintainers do not have time to try reproduce bugs themselves. Please try to minimize the superfluous code and focus only on reproducing the bug.
Please create a new issue with this and we'll be happy to review it!
Most helpful comment
work around is to set a timeOut of 10ms