@react-native-ohos/react-native-document-picker
Version:
A react native interface to access documents from dropbox, google drive, iCloud...
25 lines (15 loc) • 700 B
text/typescript
/**
* This code was generated by "react-native codegen-lib-harmony"
*/
import { Tag } from "@rnoh/react-native-openharmony/ts"
export namespace RNDocumentPicker {
export const NAME = 'RNDocumentPicker' as const
export type DocumentPickerResponse = {uri: string, name: string, copyError?: string, fileCopyUri: null | string, type: null | string, size: null | number}
export type DirectoryPickerResponse = {uri: string}
export interface Spec {
getConstants(): {};
pick(options: Object): Promise<DocumentPickerResponse[]>;
releaseSecureAccess(uris: string[]): Promise<void>;
pickDirectory(): Promise<DirectoryPickerResponse>;
}
}