From 6d8651fe4bc0fc0497babc8001c77c3a5c65071f Mon Sep 17 00:00:00 2001 From: Ivan Sekovanikj Date: Wed, 10 Jun 2026 03:50:53 +0200 Subject: [PATCH] fix: expo ui bottom sheet synchronization issues --- package/src/components/AttachmentPicker/AttachmentPicker.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/src/components/AttachmentPicker/AttachmentPicker.tsx b/package/src/components/AttachmentPicker/AttachmentPicker.tsx index cd4d786930..51ded7d630 100644 --- a/package/src/components/AttachmentPicker/AttachmentPicker.tsx +++ b/package/src/components/AttachmentPicker/AttachmentPicker.tsx @@ -56,6 +56,9 @@ export const AttachmentPicker = () => { useEffect(() => { const backAction = () => { + if (currentIndexRef.current === -1) { + return false; + } if (attachmentPickerStore.state.getLatestValue().selectedPicker) { attachmentPickerStore.setSelectedPicker(undefined); closePicker();