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.

react-native-document-picker is not working on Android

See original GitHub issue

Performed all linking as per the READ ME

Added an entry in build.gradle

dependencies {
  implementation project(':react-native-document-picker')
}


And also on Settings.gradle

include ':react-native-document-picker'
project(':react-native-document-picker').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-document-picker/android')

Also provided permissions for

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

Works properly on iOS but fails on Android. Any help is really appreciated.

Screen Shot 2019-03-24 at 9 09 17 PM

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
badrinathvmcommented, Mar 25, 2019

Fixed the issue , had forgot to add entry new ReactNativeDocumentPicker() in MainApplication get Packages()

It works now…

1reaction
badrinathvmcommented, Mar 25, 2019

Any help on Android please ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Document picker is not working in react native - Stack Overflow
I am currently facing issue with react native document picker in my react native app . I attached screenshot for your referenced.
Read more >
react-native-document-picker not working. What's wrong - Reddit
So I am trying to learn selecting and uploading a file with React Native on the Android Emulator using Expo.
Read more >
Multiple types doesn't work on android #513 - GitHub
I have the same problem. With the following code, I can select any file type. const pickerResult = await DocumentPicker.pickMultiple({ type: [ ...
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: 18 days ago.
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 >

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