react-native-documents/document-picker

picker not opening in ios

Closed this issue · 3 comments

#Bug Report
document picker is not opening in ios, it is just opening picker closing immediately when I call your pick or pick single method.
it gives me the below error:-
[Error: Warning: previous promise did not settle and was overwritten. You've called "pick" while "pick" was already in progress and has not been completed yet.]
try 1)upgrade the document-picker version to latest, but still not working
my sample code:- const result = await DocumentPicker.pickSingle({
type: _pickType,
allowMultiSelection: false,
});

react-native version:- 0.69.1
react-native-document-picker version:- 9.0.1
above are the versions I am currently using in my project.

Are you open this picker from ReactNativeModal?

segicm commented

I am having the same problem...
On a first attempt, the modal closes immediately, and if you try again it will show the error: "Error: Warning: previous promise did not settle and was overwritten. You've called "pick" while "pick" was already in progress and has not been completed yet.".

I managed to take a screenshot before the modal closes:
Screenshot 2023-06-07 at 13 54 43

👋 @talksick-0, 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 code snippet that we can copy-paste into an empty project and see the error ourselves, or provide a git repository with 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!