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
optimize app load
ammarahm-edf8e3dab38284
diff --git a/apps/mobile/src/components/AppLoader/index.js b/apps/mobile/src/components/AppLoader/index.jsindex 666b912bc..f9298a161 100644--- a/apps/mobile/src/components/AppLoader/index.js+++ b/apps/mobile/src/components/AppLoader/index.js@@ -23,26 +23,21 @@ const AppLoader = ({onLoad}) => {const [opacity, setOpacity] = useState(true);const load = async () => {- db.notes.init().then(() => {- dispatch({type: Actions.NOTES});- dispatch({type: Actions.FAVORITES});- dispatch({type: Actions.LOADING, loading: false});- eSendEvent(eOpenSideMenu);- });eSendEvent(eOpenSideMenu);setOpacity(false);- await sleep(50);+ await sleep(2);Animated.timing(opacityV, {toValue: 0,duration: 150,easing: Easing.out(Easing.ease),}).start();- Animated.timing(scaleV, {- toValue: 1,- duration: 150,- easing: Easing.out(Easing.ease),- }).start();- changeContainerScale(ContainerScale, 1, 500);+ db.notes.init().then(() => {+ dispatch({type: Actions.NOTES});+ dispatch({type: Actions.FAVORITES});+ dispatch({type: Actions.LOADING, loading: false});+ eSendEvent(eOpenSideMenu);+ });+ changeContainerScale(ContainerScale, 1, 600);await sleep(150);setLoading(false);animation = false;