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
Works properly on iOS but fails on Android. Any help is really appreciated.

@badrinathvm is it working with iOS i unable to view the loaded documents from iCloud please help is its working with iOS
yes it's working on iOS. What is the issue you are facing with iOS
I followed below steps
RNDocumentPicker.xcodeprojCapapbalities section.Any help on Android please ?
Fixed the issue , had forgot to add entry new ReactNativeDocumentPicker()
in MainApplication get Packages()
It works now..
@badrinathvm Thanks for replay. How can i view the selected file ?. I have used react-native-file-viewer but i unable to preview the file. Reference error https://github.com/vinzscam/react-native-file-viewer/issues/44 Please help me if you find any solution.
@bhoomesh950 You can read the file with RNFetchBlob library. In my case I'm using PDF, so I convert it to base64 string and pass to the PDFView library.
async convertFileToBase64(uri) {
const file = Platform.OS === 'ios' ? uri.replace('file:', '') : uri
await RNFetchBlob.fs.readFile(file,'base64')
.then((baseCodedFile) => {
this.props.navigation.navigate('UploadDocument', { documentPath: baseCodedFile, resourceType: 'base64' })
})
}
That's a basic example
not working on RN 0.59.1
I think we need to open a Spectrum about it
closing as resolved https://github.com/Elyx0/react-native-document-picker/issues/196#issuecomment-476268647
Most helpful comment
Fixed the issue , had forgot to add entry
new ReactNativeDocumentPicker()in MainApplication get Packages()
It works now..