From 88edfacf5d5f2ad6deec7ee5ec1c19ee68f23a13 Mon Sep 17 00:00:00 2001 From: vivek Date: Sat, 10 Oct 2026 08:30:43 +0530 Subject: [PATCH] fix(mobile): Android composer keeps the caret in view on AOSP-based keyboards (#17492) Co-authored-by: Claude Opus 5.5 --- .../java/expo/modules/t3composereditor/T3ComposerEditorView.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/mobile/modules/t3-composer-editor/android/src/main/java/expo/modules/t3composereditor/T3ComposerEditorView.kt b/apps/mobile/modules/t3-composer-editor/android/src/main/java/expo/modules/t3composereditor/T3ComposerEditorView.kt index 35d796b7876fdb7022958aa71bfab3f306b17f8d..1f0da6e444deae282a80e263bb7372a6c4d02b97 100644 --- a/apps/mobile/modules/t3-composer-editor/android/src/main/java/expo/modules/t3composereditor/T3ComposerEditorView.kt +++ b/apps/mobile/modules/t3-composer-editor/android/src/main/java/expo/modules/t3composereditor/T3ComposerEditorView.kt @@ -37,6 +37,9 @@ class T3ComposerEditorView(context: Context, appContext: AppContext) : ExpoView( context, appContext ) { + // React Native ignores the editor's requestLayout(), which makes TextView defer caret scrolls. + override val shouldUseAndroidLayout = true + private val editor = SelectionAwareEditText(context) private val defaultHighlightColor = editor.highlightColor private val defaultSelectionColor = context.resolveThemeColor( -- 2.54.0