Natty Precise Maverick

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

    1.5.4 • 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

    // Type definitions for react-native-photo-view 1.5
    // Project: https://github.com/alwx/react-native-photo-view
    // Definitions by: Christian Chown <https://github.com/christianchown>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // TypeScript Version: 2.8
    
    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.

    Keywords

    none

    Install

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

    DownloadsWeekly Downloads

    981

    Version

    1.5.4

    License

    MIT

    Unpacked Size

    6.02 kB

    Total Files

    4

    Last publish

    Collaborators

    • types