mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-18 17:16:00 +00:00
* meta: enforce `no-unused-vars` linter rule * meta: fix `@typescript-eslint/no-unused-vars` linter warnings * meta: enforce `no-unused-expressions` lint rule * @uppy/companion: fix `tsc` build
13 lines
322 B
JavaScript
13 lines
322 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
|
|
}
|
|
})
|
|
}
|
|
|
|
export default selectDocumentWithExpo
|