react-native-ohos-docviewer
Version:
这是一款基于React Native HarmonyOS端文件文档查看器(pdf、png、jpg、xml、xls、doc、ppt、xlsx、docx、pptx 等)开源插件
25 lines (17 loc) • 732 B
text/typescript
/**
* This code was generated by "react-native codegen-harmony"
*
* Do not edit this file as changes may cause incorrect behavior and will be
* lost once the code is regenerated.
*
* @generatorVersion: 2
*/
export namespace RNDocViewer {
export const NAME = 'RNDocViewer' as const
export type FileInfo = {url?: string, fileName?: string, fileType?: string, cache?: boolean, base64?: string}
export interface Spec {
openDoc(fileParams: FileInfo[], callback: (err: string, url: string) => void): void;
openDocBinaryinUrl(fileParams: FileInfo[], callback: (err: string, url: string) => void): void;
openDocb64(fileParams: FileInfo[], callback: (err: string, url: string) => void): void;
}
}