Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Can not open DocumentPicker window on Android #742

Closed
baddif opened this issue Jan 7, 2025 · 1 comment
Closed

Can not open DocumentPicker window on Android #742

baddif opened this issue Jan 7, 2025 · 1 comment

Comments

@baddif
Copy link

baddif commented Jan 7, 2025

    console.log('DocumentPicker: 1');
      const res = await DocumentPicker.pick({
        type: [DocumentPicker.types.allFiles],
        copyTo: 'cachesDirectory'
      });
    console.log('DocumentPicker: 2');
    console.log('res: ', res);

I have codes like this, and the DocumentPicker wouldn't work at all.
I can get log 'DocumentPicker: 1', and then looks like the program stoped at the await command.
Logs after DocumentPicker never showed up.
I use try-catch, but it didn't throw any error either.
As far as I know, no permission was needed, and it just won't work.
I didn't try ios, now I am focusing on Android.
Thanks for any help or tip.

Copy link

github-actions bot commented Jan 7, 2025

👋 @baddif, 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!

@github-actions github-actions bot closed this as completed Jan 7, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Jan 7, 2025
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

2 participants