uppy/packages/@uppy/react-native/file-picker/selectDocument.js
Kevin van Zonneveld 14c8a8cde8
autofix code
2021-03-09 20:59:02 +01:00

13 lines
329 B
JavaScript

import * as DocumentPicker from 'expo-document-picker'
function selectDocumentWithExpo (options) {
return DocumentPicker.getDocumentAsync({
copyToCacheDirectory: false,
}).then((result) => {
if (!result.cancelled && result.type !== 'cancel') {
return result
}
})
}
export default selectDocumentWithExpo