React native 如何在不使用iCloud的情况下从文件管理器上载文件?
我想从我的React原生应用程序上载文档和pdf文件。我使用了React Native document picker,但它与iCloud配合使用,我想从文件管理器中选择文件 这是我的密码:React native 如何在不使用iCloud的情况下从文件管理器上载文件?,react-native,picker,React Native,Picker,我想从我的React原生应用程序上载文档和pdf文件。我使用了React Native document picker,但它与iCloud配合使用,我想从文件管理器中选择文件 这是我的密码: import { DocumentPicker, DocumentPickerUtil } from 'react-native-document-picker'; selectFile(type,index='') { DocumentPicker.show({ filetyp
import { DocumentPicker, DocumentPickerUtil } from 'react-native-document-picker';
selectFile(type,index='') {
DocumentPicker.show({
filetype: [DocumentPickerUtil.allFiles()],
},(error,res) => {
console.log(
res.uri,
res.type, // mime type
res.fileName,
res.fileSize
);
});
}