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 keyboard flicker when restoring appState
ammarahm-ed221ce526c11a
diff --git a/apps/mobile/src/components/AppLoader/index.js b/apps/mobile/src/components/AppLoader/index.jsindex 1d8cf2a32..cc7621082 100644--- a/apps/mobile/src/components/AppLoader/index.js+++ b/apps/mobile/src/components/AppLoader/index.js@@ -9,6 +9,7 @@ import {eSubscribeEvent,eUnSubscribeEvent,} from '../../services/EventManager';+import { editing } from '../../utils';import {changeContainerScale, ContainerScale} from '../../utils/Animations';import {db} from '../../utils/DB';import {eOpenRateDialog, eOpenSideMenu} from '../../utils/Events';@@ -24,7 +25,7 @@ const AppLoader = ({onLoad}) => {const [loading, setLoading] = useState(true);const [opacity, setOpacity] = useState(true);- const load = async (value) => {+ const load = async value => {if (value === 'hide') {setLoading(true);opacityV.setValue(1);@@ -34,8 +35,10 @@ const AppLoader = ({onLoad}) => {if (appState) {appState = JSON.parse(appState);if (!appState.movedAway) {- tabBarRef.current?.goToPage(1);eSendEvent('loadingNote', appState.note);+ editing.currentlyEditing = true;+ tabBarRef.current?.goToPage(1);+}}@@ -53,16 +56,15 @@ const AppLoader = ({onLoad}) => {duration: 150,easing: Easing.out(Easing.ease),}).start();- 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;+ await db.notes.init();+ dispatch({type: Actions.NOTES});+ dispatch({type: Actions.FAVORITES});+ dispatch({type: Actions.LOADING, loading: false});+ eSendEvent(eOpenSideMenu);let askForRating = await MMKV.getItem('askForRating');if (askForRating !== 'never' || askForRating !== 'completed') {askForRating = JSON.parse(askForRating);