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
mobile: fix loading data in share extension
Ammar Ahmeda29bcf713f55
diff --git a/apps/mobile/app/share/share.tsx b/apps/mobile/app/share/share.tsxindex 11e7c07d0..7fbd6aed2 100644--- a/apps/mobile/app/share/share.tsx+++ b/apps/mobile/app/share/share.tsx@@ -251,6 +251,7 @@ const ShareView = () => {setRawData(item);if (isURL(item.value)) {note = await showLinkPreview(note, item.value);+ noteTitle.current = note.title;} else {note.content.data = makeHtmlFromPlainText(item.value);}@@ -261,9 +262,6 @@ const ShareView = () => {if (key.includes("TITLE") || key.includes("SUBJECT")) {note.title = item[key];noteTitle.current = note.title;- inputRef.current?.setNativeProps?.({- text: noteTitle.current- });}if (key.includes("TEXT") && !note.content.data) {note.content.data = item[key];@@ -294,6 +292,10 @@ const ShareView = () => {}}}++ inputRef.current?.setNativeProps?.({+ text: noteTitle.current+ });onLoad();setNote({ ...note });} catch (e) {@@ -308,7 +310,6 @@ const ShareView = () => {try {await initDatabase();setLoadingExtension(false);- loadData(false);useShareStore.getState().restore();} catch (e) {DatabaseLogger.error(e);