我试过react-native file picker、react-native file chooser、react-native document chooser等,但都不能正常工作.有谁能给我推荐一个功能良好的文件 Select 器来从设备存储中 Select 文件吗?
我试过react-native file picker、react-native file chooser、react-native document chooser等,但都不能正常工作.有谁能给我推荐一个功能良好的文件 Select 器来从设备存储中 Select 文件吗?
就我个人而言,我使用react-native-document-picker
.
installation和usage在他们的docs中被很好地提到
目前,它支持file upload
个应用程序所需的大多数通用用例
DocumentPickerUtil.pdf()
DocumentPickerUtil.audio()
DocumentPickerUtil.plainText()
其余的限制可以根据您的file type option
进行修改,因为它提供了以下file res
个选项
res.uri,
res.type, // mime type
res.fileName,
res.fileSize