UNPKG

1.04 kBTypeScriptView Raw
1import PropTypes from 'prop-types';
2import { ImageProps, ViewStyle, StyleProp, ImageStyle } from 'react-native';
3import { LightboxProps } from 'react-native-lightbox-v2';
4import { IMessage } from './Models';
5export interface MessageImageProps<TMessage extends IMessage> {
6 currentMessage?: TMessage;
7 containerStyle?: StyleProp<ViewStyle>;
8 imageStyle?: StyleProp<ImageStyle>;
9 imageProps?: Partial<ImageProps>;
10 lightboxProps?: LightboxProps;
11}
12export declare function MessageImage<TMessage extends IMessage = IMessage>({ containerStyle, lightboxProps, imageProps, imageStyle, currentMessage, }: MessageImageProps<TMessage>): JSX.Element | null;
13export declare namespace MessageImage {
14 var propTypes: {
15 currentMessage: PropTypes.Requireable<object>;
16 containerStyle: PropTypes.Requireable<number | boolean | object>;
17 imageStyle: PropTypes.Requireable<number | boolean | object>;
18 imageProps: PropTypes.Requireable<object>;
19 lightboxProps: PropTypes.Requireable<object>;
20 };
21}