From 2ae094cf1fcced667c905bfc160eee54be915c73 Mon Sep 17 00:00:00 2001 From: Ammar Ahmed Date: Tue, 19 Aug 2025 12:51:16 +0500 Subject: [PATCH] mobile: fix sharing and opening exported notes --- apps/mobile/app/components/sheets/export-notes/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/mobile/app/components/sheets/export-notes/index.tsx b/apps/mobile/app/components/sheets/export-notes/index.tsx index ac49bcb94..86dd3dcc5 100644 --- a/apps/mobile/app/components/sheets/export-notes/index.tsx +++ b/apps/mobile/app/components/sheets/export-notes/index.tsx @@ -310,6 +310,7 @@ const ExportNotesSheet = ({ ToastManager.error(e as Error); }); } else { + await sleep(500); FileViewer.open(result?.filePath, { showOpenWithDialog: true, showAppsSuggestions: true @@ -338,6 +339,7 @@ const ExportNotesSheet = ({ .getState() .setAppDidEnterBackgroundForAction(true); if (Platform.OS === "ios") { + await sleep(500); Share.open({ url: result?.fileDir + result.fileName }).catch(() => {