Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix focus editor on ios

ammarahm-ed3a0c324ad68b
diff --git a/apps/mobile/babel.config.js b/apps/mobile/babel.config.js
index 299bf1509..179a54e0d 100644
--- a/apps/mobile/babel.config.js
+++ b/apps/mobile/babel.config.js
@@ -1,6 +1,6 @@
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
- //"transform-remove-console"
+ "transform-remove-console"
]
};
diff --git a/apps/mobile/src/views/Editor/Functions.js b/apps/mobile/src/views/Editor/Functions.js
index 03ed404ef..d364f09ba 100644
--- a/apps/mobile/src/views/Editor/Functions.js
+++ b/apps/mobile/src/views/Editor/Functions.js
@@ -175,11 +175,10 @@ export const loadNote = async (item) => {
await sleep(20);
if (Platform.OS === 'android') {
textInput.current?.focus();
- console.log('focus');
tiny.call(EditorWebView, tiny.focusEditor);
EditorWebView.current?.requestFocus();
} else {
- editorTitleInput.current?.focus();
+ tiny.call(EditorWebView, tiny.focusEditor);
}
if (!webviewInit) {
EditorWebView.current?.reload();