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
performance: put smaller data in db
ammarahm-ed9e651ff10628
diff --git a/apps/mobile/src/components/ActionSheetComponent/index.js b/apps/mobile/src/components/ActionSheetComponent/index.jsindex 956d32ef5..907cca434 100644--- a/apps/mobile/src/components/ActionSheetComponent/index.js+++ b/apps/mobile/src/components/ActionSheetComponent/index.js@@ -212,10 +212,10 @@ export const ActionSheetComponent = ({icon: 'moon',func: () => {if (!colors.night) {- AsyncStorage.setItem('theme', JSON.stringify(COLOR_SCHEME_DARK));+ AsyncStorage.setItem('theme', JSON.stringify({night: true}));changeColorScheme(COLOR_SCHEME_DARK);} else {- AsyncStorage.setItem('theme', JSON.stringify(COLOR_SCHEME_LIGHT));+ AsyncStorage.setItem('theme', JSON.stringify({night: false}));changeColorScheme(COLOR_SCHEME_LIGHT);}},diff --git a/apps/mobile/src/components/Menu/index.js b/apps/mobile/src/components/Menu/index.jsindex e94a8a8cf..6ce27ea89 100644--- a/apps/mobile/src/components/Menu/index.js+++ b/apps/mobile/src/components/Menu/index.js@@ -61,10 +61,10 @@ export const Menu = ({close = () => {}, hide, update = () => {}}) => {icon: 'moon',func: () => {if (!colors.night) {- AsyncStorage.setItem('theme', JSON.stringify(COLOR_SCHEME_DARK));+ AsyncStorage.setItem('theme', JSON.stringify({night: true}));changeColorScheme(COLOR_SCHEME_DARK);} else {- AsyncStorage.setItem('theme', JSON.stringify(COLOR_SCHEME_LIGHT));+ AsyncStorage.setItem('theme', JSON.stringify({night: false}));changeColorScheme(COLOR_SCHEME_LIGHT);}diff --git a/apps/mobile/src/views/Settings/index.js b/apps/mobile/src/views/Settings/index.jsindex 767132ef8..38f884d57 100644--- a/apps/mobile/src/views/Settings/index.js+++ b/apps/mobile/src/views/Settings/index.js@@ -109,13 +109,13 @@ export const Settings = ({navigation}) => {if (!colors.night) {AsyncStorage.setItem('theme',- JSON.stringify(COLOR_SCHEME_DARK),+ JSON.stringify({night: true}),);changeColorScheme(COLOR_SCHEME_DARK);} else {AsyncStorage.setItem('theme',- JSON.stringify(COLOR_SCHEME_LIGHT),+ JSON.stringify({night: false}),);changeColorScheme(COLOR_SCHEME_LIGHT);