DocumentPicker.show() callback is no executing
See original GitHub issueHi all, use this library in my project and the picker works as well, but the callback do nothings… This is my code:
DocumentPicker.show({
filetype: [DocumentPickerUtil.pdf()],
}, (error, res) => {
console.log('Fired!');
if (error) return console.log(error);
return console.log(res);
});
The document picker works, I choose a file and apparently works but the console don’t shows nothing.
I’m using React-Native 0.49.1, Android 5.1, Android Studio 3
Pd: I get this line in console:
11-27 14:06:48.306 13977-13977/com.android.documentsui D/Documents: onFinished() [content://com.android.externalstorage.documents/document/3CDD-ACC7%3AWhatsApp%2FMedia%2FWhatsApp%20Documents%2FTutorialPython2.pdf]'
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:6
Top Results From Across the Web
DocumentPicker.show() callback is no executing · Issue #85 ...
The document picker works, I choose a file and apparently works but the console don't shows nothing. I'm using React-Native 0.49.1, Android 5.1, ......
Read more >UIDocumentPickerViewController - does not pick document
I have the following document picker, adapted from here, running on iOS device / simulator. ... The function documentPicker is never called. Any ......
Read more >react-native-document-picker/README.md - UNPKG
Run `npm install react-native-document-picker --save` ... _This is normally the filename of the file, but Android does not ... errorCallback(errorUp);.
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 >react-native-document-picker - npm
A react native interface to access documents from dropbox, google drive, iCloud.... Latest version: 8.1.3, last published: 3 days ago.
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
Hi, I solve this just adding
to my main java react native activity an works!
Why isn’t this documented? As an iOS developer implementing some native Android features in an hybrid RN app with very little Android experience, I feel like this could be useful there.