@types/react-native-doc-viewer
TypeScript icon, indicating that this package has built-in type declarations

2.7.6 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-native-doc-viewer

Weekly Downloads

228

Version

2.7.6

License

MIT

Unpacked Size

4.36 kB

Total Files

5

Last publish

Collaborators

  • types