mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-19 01:24:18 +00:00
13 lines
307 B
JavaScript
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
|