1.5.8 • Published 5 months ago

@types/react-native-photo-view v1.5.8

Weekly downloads
461
License
MIT
Repository
github
Last release
5 months ago

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.

1.5.8

5 months ago

1.5.7

6 months ago

1.5.6

7 months ago

1.5.5

7 months ago

1.5.4

3 years ago

1.5.3

5 years ago

1.5.2

6 years ago

1.5.1

6 years ago

1.5.0

6 years ago