mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-18 17:16:00 +00:00
14 lines
387 B
JavaScript
14 lines
387 B
JavaScript
import * as DocumentPicker from 'expo-document-picker' // eslint-disable-line import/no-unresolved
|
|
|
|
function selectDocumentWithExpo () {
|
|
return DocumentPicker.getDocumentAsync({
|
|
copyToCacheDirectory: false,
|
|
}).then((result) => {
|
|
if (!result.cancelled && result.type !== 'cancel') {
|
|
return result
|
|
}
|
|
return undefined
|
|
})
|
|
}
|
|
|
|
export default selectDocumentWithExpo
|