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
change react-tracked provider to ts
ammarahm-ed7b9e9ee5e185
diff --git a/apps/mobile/src/provider/index.js b/apps/mobile/src/provider/index.tssimilarity index 62%rename from apps/mobile/src/provider/index.jsrename to apps/mobile/src/provider/index.tsindex 67f478be9..b0045e0c2 100644--- a/apps/mobile/src/provider/index.js+++ b/apps/mobile/src/provider/index.ts@@ -3,7 +3,10 @@ import { createContainer } from 'react-tracked';import { defaultState } from './DefaultState';import { reducer } from './Reducer';-const useValue = () => useReducer(reducer, defaultState);+type TrackedState = typeof defaultState++const useValue:() => [TrackedState, React.DispatchWithoutAction] = () => useReducer(reducer, defaultState);+export const {Provider, useTracked, useTrackedState} = createContainer(useValue,);\ No newline at end of file