Skip to content

fix(mobile): ChatScreen 加 KeyboardAvoidingView 防 iOS 软键盘盖 Composer - #1746

Merged
DeliciousBuding merged 1 commit into
masterfrom
fix/mobile-keyboard-avoiding
Aug 17, 2026
Merged

fix(mobile): ChatScreen 加 KeyboardAvoidingView 防 iOS 软键盘盖 Composer#1746
DeliciousBuding merged 1 commit into
masterfrom
fix/mobile-keyboard-avoiding

Conversation

@DeliciousBuding

Copy link
Copy Markdown
Collaborator

背景

移动端 ChatScreen 底部是 Composer(TextInput),iOS 软键盘弹出会盖住输入框,无法看到正在打字的内容/发送态。KeyboardAvoidingView/Platform.OS 在 app/mobile-rn/src 零命中。

变更

  • app/mobile-rn/src/screens/ChatScreen.tsx:ChatScreen 主布局从 <View> 改为 <KeyboardAvoidingView behavior={Platform.OS === 'ios' ? 'padding' : undefined}>,iOS 软键盘弹出时 Composer 上移可见;Android 不设 behavior(走原生 windowSoftInputMode)。

证据

  • real_tested=false:typecheck + 351 单测全绿;未在真机/模拟器验证键盘交互。
  • 本地门禁:corepack pnpm --filter agenthub-mobile-rn typecheck(clean)+ corepack pnpm --filter agenthub-mobile-rn test(351 passed)全绿。

关联

审计 P0-3:mobile 全栈缺 KeyboardAvoidingView。

iOS 软键盘弹出时盖住底部 Composer 输入框,用户无法看到正在打字的内容与发送态。用 KeyboardAvoidingView behavior=padding 包裹 ChatScreen 主布局,Android 不设 behavior(走原生 windowSoftInputMode)。

Co-authored-by: Cursor <cursor@vectorcontrol.tech>
@coderabbitai

coderabbitai Bot commented Aug 17, 2026

Copy link
Copy Markdown

Caution

Review failed

An error occurred during the review process. Please try again later.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@DeliciousBuding
DeliciousBuding merged commit 2704ade into master Aug 17, 2026
29 checks passed
@DeliciousBuding
DeliciousBuding deleted the fix/mobile-keyboard-avoiding branch August 17, 2026 13:38
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.

1 participant