From 9fc4770b1ef823e403f04ddc24c1ee3bbcf81bda Mon Sep 17 00:00:00 2001 From: tienifr Date: Sat, 19 Aug 2023 22:35:14 +0700 Subject: [PATCH] fix: eslint error --- .../Attachments/AttachmentView/AttachmentViewPdf/index.native.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Attachments/AttachmentView/AttachmentViewPdf/index.native.js b/src/components/Attachments/AttachmentView/AttachmentViewPdf/index.native.js index cd2cc4079e12..38c1deecb8e0 100644 --- a/src/components/Attachments/AttachmentView/AttachmentViewPdf/index.native.js +++ b/src/components/Attachments/AttachmentView/AttachmentViewPdf/index.native.js @@ -9,6 +9,7 @@ function AttachmentViewPdf({file, encryptedSourceUrl, isFocused, isUsedInCarouse useEffect(() => { attachmentCarouselPagerContext.onPinchGestureChange(false); + // eslint-disable-next-line react-hooks/exhaustive-deps -- we just want to call this function when component is mounted }, []); const onScaleChanged = useCallback(