[Android] DocumentPicker.pick not calling callback
See original GitHub issueSince 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:
- Created 4 years ago
- Comments:7
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@DanielBoening v3 does not use a callback API, it returns a promise. You need to use
.then
orawait
.@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.