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
mobile: hide keyboard when app is locked
Ammar Ahmedce0ef0a1cf53
diff --git a/apps/mobile/app/components/app-lock/index.tsx b/apps/mobile/app/components/app-lock/index.tsxindex f8aed90a5..66bb28c69 100644--- a/apps/mobile/app/components/app-lock/index.tsx+++ b/apps/mobile/app/components/app-lock/index.tsx@@ -54,6 +54,8 @@ import Paragraph from "../ui/typography/paragraph";import { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view";import { strings } from "@notesnook/intl";import { AppFontSize } from "../../utils/size";+import { editorController } from "../../screens/editor/tiptap/utils";+import { useTabStore } from "../../screens/editor/tiptap/use-tab-store";const getUser = () => {const user = MMKV.getString("user");@@ -109,6 +111,9 @@ const AppLocked = () => {);const onUnlockAppRequested = useCallback(async () => {+ editorController.current?.commands.blur(useTabStore.getState().currentTab);+ editorController.current?.commands.blurPassInput();+if (!biometricsAuthEnabled ||!(await BiometricService.isBiometryAvailable())@@ -294,7 +299,9 @@ const AppLocked = () => {!biometricsAuthEnabled ||!(await BiometricService.isBiometryAvailable())) {- passwordInputRef.current?.focus();+ setTimeout(() => {+ passwordInputRef.current?.focus();+ }, 32);}}}placeholder={