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
refactor
ammarahm-edc27b1c554fed
diff --git a/apps/mobile/App.js b/apps/mobile/App.jsindex 4f0738d03..5de7dc859 100644--- a/apps/mobile/App.js+++ b/apps/mobile/App.js@@ -22,6 +22,8 @@ import {DeviceDetectionService} from './src/utils/deviceDetection';import StorageInterface from './src/utils/storage';import {w} from './src/utils/utils';import Editor from './src/views/Editor';+import {eSubscribeEvent, eUnSubscribeEvent} from './src/services/eventManager';+import {eDispatchAction} from './src/services/events';export const DDS = new DeviceDetectionService();export const db = new Storage(StorageInterface);@@ -114,11 +116,11 @@ const App = () => {};useEffect(() => {- _recieveEvent('updateEvent', type => {+ eSubscribeEvent(eDispatchAction, type => {dispatch(type);});return () => {- _unSubscribeEvent('updateEvent', type => {+ eUnSubscribeEvent(eDispatchAction, type => {dispatch(type);});};