question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Android] DocumentPicker.pick not calling callback

See original GitHub issue

Since the React Native update we have problem with the document picker.

RN: 61.2 react-native-document-picker: 3.2.4

DocumentPicker.pick({type: [DocumentPicker.types.allFiles],}, callback);

User is prompted to pick a file. After selecting a file, the callback should be called but this is not happening.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
dantmancommented, Oct 24, 2019

@DanielBoening v3 does not use a callback API, it returns a promise. You need to use .then or await.

0reactions
maifeeulasadcommented, Dec 6, 2020

@sonalibandal1 Instead of picking files from downloads or recent, try picking directly from file-manager. I can remember I also faced this and I asked my friends not to use those functionalities.

And let me know, what happens.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Android] DocumentPicker.pick not calling callback · Issue #253
I am using latest version 4.1.0 document picker but getting crash after selecting file . java.lang.RuntimeException: Failure delivering result ...
Read more >
A basic file picker with callback? - android - Stack Overflow
I'm trying to write a function which simply shows all of the music files (mp3) available in users phone (internal/external memory) and ...
Read more >
react-native-document-picker/README.md - UNPKG
If the user cancels the document picker without choosing a file (by pressing the system back button on Android or the Cancel button...
Read more >
Picking files in React Native apps using ... - LogRocket Blog
Learn how to pick documents and files of any format from a user's device in a React Native application for iOS and Android....
Read more >
Access documents and other files from shared storage
In these cases, allow the user to choose the file to open by invoking the ... On Android 11 (API level 30) and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found