uppy/examples/react-native-expo/react-native/file-picker/selectDocument.js
2019-03-15 13:20:17 +03:00

13 lines
279 B
JavaScript

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