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 not closing on ios from keyboard hide button
ammarahm-ed092dd6fe10e1
diff --git a/apps/mobile/src/views/Editor/HistoryComponent.js b/apps/mobile/src/views/Editor/HistoryComponent.jsindex 2e67cbe4e..a27fff369 100644--- a/apps/mobile/src/views/Editor/HistoryComponent.js+++ b/apps/mobile/src/views/Editor/HistoryComponent.js@@ -3,6 +3,7 @@ import { Platform, View } from 'react-native';import { ActionIcon } from '../../components/ActionIcon';import { useTracked } from '../../provider';import { eSubscribeEvent, eUnSubscribeEvent } from '../../services/EventManager';+import { editing } from '../../utils';import { SIZE } from '../../utils/SizeUtils';import { useKeyboard } from '../../utils/use-keyboard';import { EditorWebView } from './Functions';@@ -16,6 +17,7 @@ const HistoryComponent = () => {redo: false});const keyboard = useKeyboard();+ editing.keyboardState = keyboard.keyboardShown;const onHistoryChange = data => {setHistoryState(data);@@ -23,7 +25,6 @@ const HistoryComponent = () => {useEffect(() => {eSubscribeEvent('historyEvent', onHistoryChange);-return () => {eUnSubscribeEvent('historyEvent', onHistoryChange);};@@ -46,6 +47,7 @@ const HistoryComponent = () => {height: 35}}onPress={() => {+ editing.keyboardState = true;safeKeyboardDismiss();}}/>