From f9af09c0d232e4796d118423ba1d3c71d2d4478b Mon Sep 17 00:00:00 2001 From: Rohit Bansal <40559587+Rohit3523@users.noreply.github.com> Date: Tue, 27 Jan 2026 01:39:33 +0530 Subject: [PATCH] Pass max height and width in load async --- app/containers/message/Components/Attachments/Image/Image.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/containers/message/Components/Attachments/Image/Image.tsx b/app/containers/message/Components/Attachments/Image/Image.tsx index 74d43d0e84f..ff63da3b655 100644 --- a/app/containers/message/Components/Attachments/Image/Image.tsx +++ b/app/containers/message/Components/Attachments/Image/Image.tsx @@ -28,7 +28,9 @@ export const MessageImage = React.memo(({ uri, status, encrypted = false, imageP Image.loadAsync(uri, { onError: e => { log(e); - } + }, + maxHeight: 1000, + maxWidth: 1000 }).then(image => { setImageDimensions({ width: image.width, height: image.height }); });