Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: fix sharing and opening exported notes

Ammar Ahmed2ae094cf1fcc
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(() => {