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 database methods
ammarahm-ed5d116c4d3567
diff --git a/apps/mobile/App.js b/apps/mobile/App.jsindex c017cdf22..af8f5f173 100644--- a/apps/mobile/App.js+++ b/apps/mobile/App.js@@ -53,7 +53,7 @@ const App = () => {async function Initialize(colors = colors) {let newColors = await getColorScheme(colors);- let s = await MMKV.getString('settings');+ let s = await MMKV.getStringAsync('settings');if (typeof s !== 'string') {s = defaultState.settings;s = JSON.stringify(s);diff --git a/apps/mobile/src/common/common.js b/apps/mobile/src/common/common.jsindex 19cb35a1e..6938e5856 100755--- a/apps/mobile/src/common/common.js+++ b/apps/mobile/src/common/common.js@@ -185,8 +185,8 @@ export function setColorScheme(colors = COLOR_SCHEME, accent = ACCENT) {}export async function getColorScheme() {- let accentColor = await MMKV.getString('accentColor');- let t = await MMKV.getString('theme');+ let accentColor = await MMKV.getStringAsync('accentColor');+ let t = await MMKV.getStringAsync('theme');if (typeof accentColor !== 'string') {MMKV.setStringAsync('accentColor', '#0560FF');