react-native-documents/document-picker

Closing the modal window programmatically

Closed this issue · 2 comments

Closing the modal window programmatically

Hello!
Specify whether you have such an opportunity as closing the modal window programmatically???
And if not, then implement it???

I have two cases where I need it

1st case

  • I have a modal window open when I select files and at this moment I get a push notification
  • I want to close the modal window with the selection of files when I click on the notification

2nd case

  • I need to close the modal window when the user has collapsed the application, for the correct operation of the autolock screen

file

Also, I need to close the modal before restarting the application

document_1

Hello and thanks for asking,
Dismissing the modal is possible on ios, but not with the user selection. To get the user selection, user needs to confirm it.
On android, I'm not even sure this can be done.

If you want to give it a try,please go ahead. I won't do it because of the limitations mentioned above.
Thank you 🙂