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
fix search not showing after navigation
ammarahm-edbccc6aeb4b66
diff --git a/apps/mobile/src/views/Favorites/index.js b/apps/mobile/src/views/Favorites/index.jsindex 25511f0da..4f12c770b 100644--- a/apps/mobile/src/views/Favorites/index.js+++ b/apps/mobile/src/views/Favorites/index.js@@ -51,7 +51,7 @@ export const Favorites = ({route, navigation}) => {if (favorites.length === 0) {eSendEvent('showSearch', true);} else {-+ eSendEvent('showSearch');eSendEvent(eUpdateSearchState,{placeholder: 'Search all favorites',data: favorites,diff --git a/apps/mobile/src/views/Folders/index.js b/apps/mobile/src/views/Folders/index.jsindex 67fd87e07..c23fe8567 100644--- a/apps/mobile/src/views/Folders/index.js+++ b/apps/mobile/src/views/Folders/index.js@@ -30,13 +30,14 @@ export const Folders = ({route, navigation}) => {screen: 'notebooks',});updateSearch();-+}, [notebooks]);const updateSearch = () => {if (notebooks.length === 0) {eSendEvent('showSearch', true);} else {+ eSendEvent('showSearch');eSendEvent(eUpdateSearchState, {placeholder: 'Search all notebooks',data: notebooks,diff --git a/apps/mobile/src/views/Home/index.js b/apps/mobile/src/views/Home/index.jsindex 4bc19f84a..b7a2d75e4 100755--- a/apps/mobile/src/views/Home/index.js+++ b/apps/mobile/src/views/Home/index.js@@ -62,6 +62,7 @@ export const Home = ({navigation}) => {if (notes.length === 0) {eSendEvent('showSearch', true);} else {+ eSendEvent('showSearch');eSendEvent(eUpdateSearchState, {placeholder: 'Search all notes',data: notes,diff --git a/apps/mobile/src/views/Notebook/index.js b/apps/mobile/src/views/Notebook/index.jsindex d98efc172..48215f1a6 100644--- a/apps/mobile/src/views/Notebook/index.js+++ b/apps/mobile/src/views/Notebook/index.js@@ -74,6 +74,7 @@ export const Notebook = ({route, navigation}) => {if (topics.length === 0) {eSendEvent('showSearch', true);} else {+ eSendEvent('showSearch');eSendEvent(eUpdateSearchState,{placeholder: `Search in "${params.title}"`,data: topics,diff --git a/apps/mobile/src/views/Notes/index.js b/apps/mobile/src/views/Notes/index.jsindex a2be20379..fd772dc3c 100644--- a/apps/mobile/src/views/Notes/index.js+++ b/apps/mobile/src/views/Notes/index.js@@ -125,6 +125,7 @@ export const Notes = ({route, navigation}) => {if (notes.length === 0) {eSendEvent('showSearch', true);} else {+ eSendEvent('showSearch');eSendEvent(eUpdateSearchState,{placeholder: `Search in ${params.type === 'tag' ? '#' + params.title : params.titlediff --git a/apps/mobile/src/views/Tags/index.js b/apps/mobile/src/views/Tags/index.jsindex 3d8591881..5dda6573b 100644--- a/apps/mobile/src/views/Tags/index.js+++ b/apps/mobile/src/views/Tags/index.js@@ -53,6 +53,7 @@ export const Tags = ({route, navigation}) => {if (tags.length === 0) {eSendEvent('showSearch', true);} else {+ eSendEvent('showSearch');eSendEvent(eUpdateSearchState, {placeholder: 'Search all tags',data: tags,diff --git a/apps/mobile/src/views/Trash/index.js b/apps/mobile/src/views/Trash/index.jsindex 82130bcb1..1b14cee56 100644--- a/apps/mobile/src/views/Trash/index.js+++ b/apps/mobile/src/views/Trash/index.js@@ -54,6 +54,7 @@ export const Trash = ({route, navigation}) => {if (trash.length === 0) {eSendEvent('showSearch', true);} else {+ eSendEvent('showSearch');eSendEvent(eUpdateSearchState, {placeholder: 'Search all trash',data: trash,