I've tried react-native-file-picker, react-native-file-chooser, react-native-document-chooser etc, but none of them are working properly. Can anyone suggest me a good functional file picker for choosing files from device storage?
On a personal opinion, I use react-native-document-picker
.
The installation and the usage is well mentioned in their docs
Right now it supports most general use cases required for file upload
DocumentPickerUtil.allFiles()
DocumentPickerUtil.pdf()
DocumentPickerUtil.audio()
DocumentPickerUtil.plainText()
The rest of the restrictions can be modified based upon your file type option
as it provides with the following file res
options
res.uri,
res.type, // mime type
res.fileName,
res.fileSize