authorgravatar for vivekanandamullangi@gmail.comvivek <vivekanandamullangi@gmail.com> 2026-10-10 08:30:43+05:30
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-10-10 03:00:43+00:00
log88edfacf5d5f2ad6deec7ee5ec1c19ee68f23a13
tree39a8c690c2ae993bdf90f06bcf9a37411d34b2b7
parent699da956899fb4db219b827855610095568e5a7c
signature Signed by PGP key B5690EEEBB952194

fix(mobile): Android composer keeps the caret in view on AOSP-based keyboards (#17492)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

1 files changed, 3 insertions(+), 0 deletions(-)

apps/mobile/modules/t3-composer-editor/android/src/main/java/expo/modules/t3composereditor/T3ComposerEditorView.kt+3
...@@ -37,6 +37,9 @@ class T3ComposerEditorView(context: Context, appContext: AppContext) : ExpoView(...@@ -37,6 +37,9 @@ class T3ComposerEditorView(context: Context, appContext: AppContext) : ExpoView(
37 context,37 context,
38 appContext38 appContext
39) {39) {
40 // React Native ignores the editor's requestLayout(), which makes TextView defer caret scrolls.
41 override val shouldUseAndroidLayout = true
42
40 private val editor = SelectionAwareEditText(context)43 private val editor = SelectionAwareEditText(context)
41 private val defaultHighlightColor = editor.highlightColor44 private val defaultHighlightColor = editor.highlightColor
42 private val defaultSelectionColor = context.resolveThemeColor(45 private val defaultSelectionColor = context.resolveThemeColor(