@mr_gain/react-native-image-modal
Version:
image full screen modal for react native
22 lines • 1.11 kB
TypeScript
import type { ReactNode } from 'react';
import type { ImageErrorEventData, ImageResizeMode, ImageSourcePropType, ImageStyle, NativeSyntheticEvent, StyleProp } from 'react-native';
import { Animated } from 'react-native';
interface Props {
readonly source: ImageSourcePropType;
readonly resizeMode: ImageResizeMode;
readonly imageOpacity: Animated.Value;
readonly renderToHardwareTextureAndroid: boolean;
readonly disabled: boolean;
readonly style?: StyleProp<ImageStyle>;
onDialogOpen(): void;
onLongPressOriginImage?(): void;
renderImageComponent?(params: {
readonly source: ImageSourcePropType;
readonly style?: StyleProp<ImageStyle>;
readonly resizeMode: ImageResizeMode;
}): ReactNode;
onError?: (event: NativeSyntheticEvent<ImageErrorEventData>) => void;
}
declare const OriginImage: ({ source, resizeMode, imageOpacity, renderToHardwareTextureAndroid, disabled, style, onDialogOpen, onLongPressOriginImage, renderImageComponent, onError, }: Props) => import("react").JSX.Element;
export { OriginImage };
//# sourceMappingURL=index.d.ts.map