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
expose keyboardShown to editor
ammarahm-ed6145eef66edf
diff --git a/apps/mobile/src/screens/editor/tiptap/types.ts b/apps/mobile/src/screens/editor/tiptap/types.tsindex 8f93e5c8b..b12d9d893 100644--- a/apps/mobile/src/screens/editor/tiptap/types.ts+++ b/apps/mobile/src/screens/editor/tiptap/types.ts@@ -25,6 +25,7 @@ export type Settings = {tools: ToolbarGroupDefinition[];noToolbar?: boolean;noHeader?: boolean;+ keyboardShown?: boolean;};export type EditorProps = {diff --git a/apps/mobile/src/screens/editor/tiptap/useEditorEvents.ts b/apps/mobile/src/screens/editor/tiptap/useEditorEvents.tsindex 50a95583b..8d5648c19 100644--- a/apps/mobile/src/screens/editor/tiptap/useEditorEvents.ts+++ b/apps/mobile/src/screens/editor/tiptap/useEditorEvents.ts@@ -3,6 +3,7 @@import { useCallback, useEffect, useRef } from 'react';import { BackHandler, InteractionManager, NativeEventSubscription } from 'react-native';import { WebViewMessageEvent } from 'react-native-webview';+import useKeyboard from 'src/utils/hooks/use-keyboard';import { DDS } from '../../../services/device-detection';import {eSendEvent,@@ -122,6 +123,7 @@ export const useEditorEvents = (const readonly = useEditorStore(state => state.readonly);const isPremium = useUserStore(state => state.premium);const tools = useDragState(state => state.data);+ const { keyboardShown } = useKeyboard();if (!editor) return null;useEffect(() => {@@ -133,7 +135,8 @@ export const useEditorEvents = (readonly: readonly || editorPropReadonly,tools: tools,noHeader: noHeader,- noToolbar: readonly || editorPropReadonly || noToolbar+ noToolbar: readonly || editorPropReadonly || noToolbar,+ keyboardShown: keyboardShown || false});}, [fullscreen,@@ -143,7 +146,8 @@ export const useEditorEvents = (editor.loading,deviceMode,tools,- editor.commands+ editor.commands,+ keyboardShown]);const onBackPress = useCallback(async () => {