npm.io
2.7.6 • Published 2 years ago

@types/react-native-doc-viewer

Licence
MIT
Version
2.7.6
Deps
1
Size
4 kB
Vulns
0
Weekly
0

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

Credits

These definitions were written by Kyle Roach.