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
minor cleanup
ammarahm-ed178a03143743
diff --git a/apps/mobile/src/utils/Storage.js b/apps/mobile/src/utils/Storage.jsindex 9ed40cd7e..999576e36 100644--- a/apps/mobile/src/utils/Storage.js+++ b/apps/mobile/src/utils/Storage.js@@ -6,6 +6,7 @@ import {PERMISSIONS, requestMultiple, RESULTS} from "react-native-permissions";import {MMKV} from "./MMKV";import { Platform } from "react-native";import { ANDROID_PATH, IOS_PATH } from ".";+import { eSendEvent } from "../services/EventManager";async function read(key, isArray = false) {let data = await MMKV.getItem(key);@@ -21,11 +22,13 @@ async function read(key, isArray = false) {return data;}+async function write(key, data) {return await MMKV.setItem(key,typeof data === 'string' ? data : JSON.stringify(data),);+}async function readMulti(keys) {