# @types/react-native-photo-view

> TypeScript definitions for react-native-photo-view

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

## Install

```sh
npm install @types/react-native-photo-view
pnpm add @types/react-native-photo-view
yarn add @types/react-native-photo-view
bun add @types/react-native-photo-view
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.5.8 |
| Published | 2023-12-21 |
| First published | 2018-04-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

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

## Dependencies (2)

- [@types/react](https://npm.io/package/@types/react.md) *
- [react-native](https://npm.io/package/react-native.md) *

## Recent versions

- 1.5.8 (latest) — 2023-12-21
- 1.5.7 (ts4.5) — 2023-11-07
- 1.5.4 (ts3.6) — 2021-07-08
- 1.5.3 (ts2.8) — 2019-02-13
- 1.5.1 (ts2.6) — 2018-04-26
- 1.5.6 — 2023-10-18
- 1.5.5 — 2023-09-27
- 1.5.2 — 2018-08-06
- 1.5.0 — 2018-04-09

## README

# Installation
> `npm install --save @types/react-native-photo-view`

# Summary
This package contains type definitions for react-native-photo-view (https://github.com/alwx/react-native-photo-view).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-photo-view.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-photo-view/index.d.ts)
````ts
import * as React from "react";
import { ImageSourcePropType, ViewProps } from "react-native";

export interface ReactNativePhotoViewProps {
    source?: ImageSourcePropType | undefined;
    loadingIndicatorSource?: ImageSourcePropType | undefined;
    fadeDuration?: number | undefined;
    minimumZoomScale?: number | undefined;
    maximumZoomScale?: number | undefined;
    showsHorizontalScrollIndicator?: boolean | undefined;
    showsVerticalScrollIndicator?: boolean | undefined;
    scale?: number | undefined;
    androidZoomTransitionDuration?: number | undefined;
    androidScaleType?:
        | "center"
        | "centerCrop"
        | "centerInside"
        | "fitCenter"
        | "fitStart"
        | "fitEnd"
        | "fitXY"
        | undefined;
    onLoadStart?: (() => void) | undefined;
    onLoad?: (() => void) | undefined;
    onLoadEnd?: (() => void) | undefined;
    onProgress?: ((loaded: number, total: number) => void) | undefined;
    onTap?: ((point: { x: number; y: number }, target?: React.ReactElement) => void) | undefined;
    onViewTap?: ((point: { x: number; y: number }, target?: React.ReactElement) => void) | undefined;
    onScale?: ((scale: number, target?: React.ReactElement) => void) | undefined;
}

export default class ReactNativePhotoView extends React.Component<ReactNativePhotoViewProps & ViewProps> {}

````

### Additional Details
 * Last updated: Thu, 21 Dec 2023 19:06:51 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react), [react-native](https://npmjs.com/package/react-native)

# Credits
These definitions were written by [Christian Chown](https://github.com/christianchown).

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