A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
add delay when opening fileViewer
ammarahm-ed404729f7e971
diff --git a/apps/mobile/src/components/ExportDialog/index.js b/apps/mobile/src/components/ExportDialog/index.jsindex 74540cdf3..73576240a 100644--- a/apps/mobile/src/components/ExportDialog/index.js+++ b/apps/mobile/src/components/ExportDialog/index.js@@ -9,10 +9,11 @@ import {} from 'react-native';import FileViewer from 'react-native-file-viewer';import Icon from 'react-native-vector-icons/MaterialCommunityIcons';+import RNFetchBlob from 'rn-fetch-blob';import {opacity, ph, pv, SIZE, WEIGHT} from '../../common/common';import {useTracked} from '../../provider';import storage from '../../utils/storage';-import {DDS, getElevation, ToastEvent} from '../../utils/utils';+import {DDS, getElevation, sleep, ToastEvent} from '../../utils/utils';import {Button} from '../Button/index';import BaseDialog from '../Dialog/base-dialog';import DialogHeader from '../Dialog/dialog-header';@@ -86,6 +87,7 @@ const ExportDialog = () => {{title: 'PDF',func: async () => {+await save(storage.saveToPDF, 'PDF');},icon: 'file-pdf-box',@@ -138,7 +140,9 @@ const ExportDialog = () => {<Loadingdone={complete}doneText={doneText}- onDone={() => {+ onDone={async () => {+ close();+ await sleep(500);FileViewer.open(result.filePath, {showOpenWithDialog: true,showAppsSuggestions: true,@@ -148,7 +152,7 @@ const ExportDialog = () => {`No application found to open ${result.name} file`,);});- close();+}}tagline="Exporting notes"/>