uppy/packages/@uppy/react-native/file-picker/selectDocument.js
2019-04-17 18:17:25 +03:00

13 lines
307 B
JavaScript

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