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