UNPKG

1.27 kBTypeScriptView Raw
1import PropTypes from 'prop-types';
2import React from 'react';
3import { ImageProps, ViewStyle, StyleProp, ImageStyle, ImageURISource } from 'react-native';
4import { LightboxProps } from 'react-native-lightbox-v2';
5import { IMessage } from './Models';
6export 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}
14export declare function MessageImage<TMessage extends IMessage = IMessage>({ containerStyle, lightboxProps, imageProps, imageSourceProps, imageStyle, currentMessage, }: MessageImageProps<TMessage>): React.JSX.Element | null;
15export 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}