Installation
npm install --save @types/react-native-doc-viewer
Summary
This package contains type definitions for react-native-doc-viewer (https://github.com/philipphecht/react-native-doc-viewer/blob/master/README.md).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-doc-viewer.
index.d.ts
export function openDoc(
files: Array<{
url: string;
fileName?: string | undefined;
fileNameOptional?: string | undefined;
cache?: boolean | undefined;
fileType?: string | undefined;
}>,
callback: (error: string, url: string) => void,
): void;
export function openDocb64(
files: Array<{ base64: string; fileName?: string | undefined; fileType?: string | undefined }>,
callback: (error: string, url: string) => void,
): void;
export function openDocBinaryinUrl(
files: Array<{ url: string; fileName?: string | undefined; fileType?: string | undefined }>,
callback: (error: string, url: string) => void,
): void;
export function playMovie(
path: string,
callback: (error: string, url: string) => void,
): void;
Additional Details
- Last updated: Thu, 21 Dec 2023 19:06:51 GMT
- Dependencies: react-native-fs
Credits
These definitions were written by Kyle Roach.