mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Switch from var to const * import React instead of /// <reference types="react" /> * Fix TextInput and remove TextInputStatic See #16318 [react-native] Wrong type for component ref * Remove TextStatic * Remove ActivityIndicatorStatic * Remove ActivityIndicatorIOSStatic * Remove DatePickerIOSStatic * Remove DrawerLayoutAndroidStatic * Remove ImageStatic * Remove ImageBackgroundStatic * Remove InputAccessoryViewStatic * Remove ListViewStatic * Remove MapViewStatic * Remove MaskedViewStatic * Remove ModalStatic * Remove NavigatorIOSStatic * Remove PickerStatic * Remove PickerIOSStatic * Remove ProgressBarAndroidStatic * Remove ProgressViewIOSStatic * Remove RefreshControlStatic * Remove RecyclerViewBackedScrollViewStatic * Remove SafeAreaViewStatic * Remove SegmentedControlIOSStatic * Remove SliderStatic * Remove StatusBarStatic * Remove ScrollViewStatic * Remove SnapshotViewIOSStatic * Remove SwipeableListViewStatic * Remove SwitchStatic * Remove SwitchIOSStatic * Remove TabBarIOSStatic * Remove ToolbarAndroidStatic * Remove TouchableHighlightStatic * Remove TouchableNativeFeedbackStatic * Remove TouchableOpacityStatic * Remove TouchableWithoutFeedbackStatic * Remove ViewStatic * Remove ViewPagerAndroidStatic * Remove WebViewStatic * Remove ButtonStatic * Remove ClippingRectangleStatic, GroupStatic, ShapeStatic, SurfaceStatic, ARTTextStatic, ARTTextStatic * Remove KeyboardAvoidingViewStatic * Remove FlatListStatic * Rename TextProperties and friends to *Props * Rename TextInputProperties and friends to *Props * Rename WebViewProperties and friends to *Props * Rename *Properties to *Props * Rename ScrollViewProperties and friends to *Props * Improve DatePickerAndroid.open() * Rename ImagePropertiesSourceOptions to ImageSourcePropType * Rename MaskedViewProps to MaskedViewIOSProps * Rename PointProperties to PointPropType * Rename TabBarItem to TabBarIOSItem * Remove internal *Properties * ImagePropertiesSourceOptions => ImagePropsSourceOptions * Merge fail: react-native-linear-gradient has been removed * Rename ImageProperties to ImageProps * Update authors list * Remove ImagePropsSourceOptions * Move *Properties redirections to legacy-properties.d.ts
31 lines
1.3 KiB
TypeScript
31 lines
1.3 KiB
TypeScript
// 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.6
|
|
|
|
import * as React from 'react';
|
|
import { ImageSourcePropType, ViewProps } from 'react-native';
|
|
|
|
export interface ReactNativePhotoViewProps {
|
|
source?: ImageSourcePropType;
|
|
loadingIndicatorSource?: ImageSourcePropType;
|
|
fadeDuration?: number;
|
|
minimumZoomScale?: number;
|
|
maximumZoomScale?: number;
|
|
showsHorizontalScrollIndicator?: boolean;
|
|
showsVerticalScrollIndicator?: boolean;
|
|
scale?: number;
|
|
androidZoomTransitionDuration?: number;
|
|
androidScaleType?: 'center' | 'centerCrop' | 'centerInside' | 'fitCenter' | 'fitStart' | 'fitEnd' | 'fitXY';
|
|
onLoadStart?: () => void;
|
|
onLoad?: () => void;
|
|
onLoadEnd?: () => void;
|
|
onProgress?: (loaded: number, total: number) => void;
|
|
onTap?: (point: {x: number, y: number}, target?: React.ReactElement<any>) => void;
|
|
onViewTap?: (point: {x: number, y: number}, target?: React.ReactElement<any>) => void;
|
|
onScale?: (scale: number, target?: React.ReactElement<any>) => void;
|
|
}
|
|
|
|
export default class ReactNativePhotoView extends React.Component<ReactNativePhotoViewProps & ViewProps> {}
|