Skip to content

fix(android): keyboard covers text input on chat screen#54

Open
cloph-dsp wants to merge 1 commit into
dzianisv:mainfrom
cloph-dsp:fix/keyboard-avoidance-android
Open

fix(android): keyboard covers text input on chat screen#54
cloph-dsp wants to merge 1 commit into
dzianisv:mainfrom
cloph-dsp:fix/keyboard-avoidance-android

Conversation

@cloph-dsp

Copy link
Copy Markdown

Description

Fixes the keyboard covering the text input on the Android chat screen.

Root Cause

KeyboardAvoidingView used behavior="height" on Android, which conflicts with the native android:windowSoftInputMode="adjustResize" already configured in AndroidManifest.xml. This caused the keyboard to overlap the input instead of pushing it up.

Fix

Changed behavior from "height" to undefined on Android. On Android, this lets the native adjustResize handling work without interference — the standard recommended approach.

Changes

  • app/session/[id].tsx: line 486 — KeyboardAvoidingView behavior

Closes #53

The KeyboardAvoidingView used behavior='height' on Android, which
conflicts with the native android:windowSoftInputMode='adjustResize'
set in AndroidManifest.xml. This causes the keyboard to overlap the
text input instead of pushing it up.

Fix: use behavior={undefined} on Android, letting the native
adjustResize handle keyboard avoidance — the recommended approach.

Closes dzianisv#53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keyboard covers text input on Android chat screen

1 participant