1 | import PropTypes from 'prop-types';
|
2 | import { ImageProps, ViewStyle, StyleProp, ImageStyle } from 'react-native';
|
3 | import { LightboxProps } from 'react-native-lightbox-v2';
|
4 | import { IMessage } from './Models';
|
5 | export interface MessageImageProps<TMessage extends IMessage> {
|
6 | currentMessage?: TMessage;
|
7 | containerStyle?: StyleProp<ViewStyle>;
|
8 | imageStyle?: StyleProp<ImageStyle>;
|
9 | imageProps?: Partial<ImageProps>;
|
10 | lightboxProps?: LightboxProps;
|
11 | }
|
12 | export declare function MessageImage<TMessage extends IMessage = IMessage>({ containerStyle, lightboxProps, imageProps, imageStyle, currentMessage, }: MessageImageProps<TMessage>): JSX.Element | null;
|
13 | export 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 | }
|