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

1.5.8 • Public • Published

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

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

Credits

These definitions were written by Christian Chown.

Versions

Current Tags

Version History

Package Sidebar

Install

npm i @types/react-native-photo-view

Weekly Downloads

672

Version

1.5.8

License

MIT

Unpacked Size

5.56 kB

Total Files

5

Last publish

Collaborators

  • types