1.5.8 • Published 5 months ago
@types/react-native-photo-view v1.5.8
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
- Last updated: Thu, 08 Jul 2021 22:41:14 GMT
- Dependencies: @types/react, @types/react-native
- Global values: none
Credits
These definitions were written by Christian Chown.