UNPKG

expo-document-picker

Version:

Provides access to the system's UI for selecting documents from the available providers on the user's device.

13 lines (10 loc) 405 B
import ExpoDocumentPicker from './ExpoDocumentPicker'; import { GetDocumentOptions, DocumentResult } from './types'; export { DocumentResult }; export async function getDocumentAsync({ type = '*/*', copyToCacheDirectory = true, multiple = false, }: GetDocumentOptions = {}): Promise<DocumentResult> { return await ExpoDocumentPicker.getDocumentAsync({ type, copyToCacheDirectory, multiple }); }