# @types/react-native-doc-viewer

> TypeScript definitions for react-native-doc-viewer

Latest version **2.7.6** (published 2023-12-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/react-native-doc-viewer
pnpm add @types/react-native-doc-viewer
yarn add @types/react-native-doc-viewer
bun add @types/react-native-doc-viewer
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.7.6 |
| Published | 2023-12-21 |
| First published | 2017-08-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/react-native-doc-viewer
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-doc-viewer
- npm.io page: https://npm.io/package/@types/react-native-doc-viewer

## Dependencies (1)

- [react-native-fs](https://npm.io/package/react-native-fs.md) ^2.13.0

## Recent versions

- 2.7.6 (latest) — 2023-12-21
- 2.7.5 (ts4.5) — 2023-11-07
- 2.7.2 (ts3.7) — 2021-07-08
- 2.7.1 (ts3.0) — 2019-11-06
- 2.4.1 (ts2.7) — 2018-02-12
- 2.4.0 (ts2.4) — 2017-08-31
- 2.7.4 — 2023-10-18
- 2.7.3 — 2023-09-27
- 2.7.0 — 2018-09-19
- 2.4.2 — 2018-08-06

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-doc-viewer/index.d.ts)
````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](https://npmjs.com/package/react-native-fs)

# Credits
These definitions were written by [Kyle Roach](https://github.com/iRoachie).

---
_Source: https://npm.io/package/@types/react-native-doc-viewer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
