UNPKG

@uiw/react-native

Version:
28 lines (27 loc) 1.17 kB
import React from 'react'; import { Image as ImageNative, ImageProps as RNImageProps, ViewStyle, StyleProp } from 'react-native'; export type ImageProps = RNImageProps & { Component?: typeof React.Component; onPress?(): void; onLongPress?(): void; ImageComponent?: React.ComponentType<ImageProps>; PlaceholderContent?: React.ReactElement<any>; containerStyle?: StyleProp<ViewStyle>; childrenContainerStyle?: StyleProp<ViewStyle>; placeholderStyle?: StyleProp<ViewStyle>; transition?: boolean; transitionDuration?: number; disabled?: boolean; children?: React.ReactNode; }; declare function TransitionImage(props: ImageProps & Partial<ImageProps>): React.JSX.Element; declare namespace TransitionImage { var displayName: string; var getSize: typeof ImageNative.getSize; var getSizeWithHeaders: typeof ImageNative.getSizeWithHeaders; var prefetch: typeof ImageNative.prefetch; var abortPrefetch: typeof ImageNative.abortPrefetch | undefined; var queryCache: typeof ImageNative.queryCache | undefined; var resolveAssetSource: typeof ImageNative.resolveAssetSource; } export default TransitionImage;