image container uiKit

This commit is contained in:
Reinaldo Neto 2023-05-19 12:47:02 -03:00
parent ce67d05852
commit 41bce65528
1 changed files with 8 additions and 1 deletions

View File

@ -31,7 +31,14 @@ export const Media = ({ element }: IImage) => {
const showAttachment = (attachment: IAttachment) => Navigation.navigate('AttachmentView', { attachment });
const imageUrl = element?.imageUrl ?? '';
return <ImageContainer file={{ image_url: imageUrl }} imageUrl={imageUrl} showAttachment={showAttachment} />;
return (
<ImageContainer
file={{ image_url: imageUrl }}
imageUrl={imageUrl}
showAttachment={showAttachment}
messageId={element.blockId || element.actionId}
/>
);
};
const genericImage = (element: IElement, context?: number) => {