TypeScript
fix(mobile): Android composer keeps the caret in view on AOSP-based keyboards (#17492)
vivek88edfacf5d5f
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.ktindex 35d796b7876..1f0da6e444d 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.highlightColorprivate val defaultSelectionColor = context.resolveThemeColor(