about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/view/com/composer/Composer.tsx13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx
index 3c2b8db2d..7872ea186 100644
--- a/src/view/com/composer/Composer.tsx
+++ b/src/view/com/composer/Composer.tsx
@@ -402,6 +402,19 @@ export const ComposePost = observer(function ComposePost({
     bottomBarAnimatedStyle,
   } = useAnimatedBorders()
 
+  // Backup focus on android, if the keyboard *still* refuses to show
+  useEffect(() => {
+    if (!isAndroid) return
+    if (isModalReady) {
+      setTimeout(() => {
+        if (!Keyboard.isVisible()) {
+          textInput.current?.blur()
+          textInput.current?.focus()
+        }
+      }, 300)
+    }
+  }, [isModalReady])
+
   return (
     <>
       <KeyboardAvoidingView