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