selectDocument.js 279 B

12345678910111213
  1. import * as Expo from 'expo'
  2. function selectDocumentWithExpo (options) {
  3. return Expo.DocumentPicker.getDocumentAsync({
  4. copyToCacheDirectory: false
  5. }).then((result) => {
  6. if (!result.cancelled) {
  7. return result
  8. }
  9. })
  10. }
  11. export default selectDocumentWithExpo