From eedb3abcf070462f3f7f5ee8cca0d0bef1f50a5f Mon Sep 17 00:00:00 2001 From: Delicious233 <101502465+DeliciousBuding@users.noreply.github.com> Date: Mon, 17 Aug 2026 21:33:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(mobile):=20ChatScreen=20=E5=8A=A0=20Keyboar?= =?UTF-8?q?dAvoidingView=20=E9=98=B2=20iOS=20=E8=BD=AF=E9=94=AE=E7=9B=98?= =?UTF-8?q?=E7=9B=96=20Composer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit iOS 软键盘弹出时盖住底部 Composer 输入框,用户无法看到正在打字的内容与发送态。用 KeyboardAvoidingView behavior=padding 包裹 ChatScreen 主布局,Android 不设 behavior(走原生 windowSoftInputMode)。 Co-authored-by: Cursor --- app/mobile-rn/src/screens/ChatScreen.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/mobile-rn/src/screens/ChatScreen.tsx b/app/mobile-rn/src/screens/ChatScreen.tsx index 166406702..d88d648ec 100644 --- a/app/mobile-rn/src/screens/ChatScreen.tsx +++ b/app/mobile-rn/src/screens/ChatScreen.tsx @@ -1,4 +1,4 @@ -import { Pressable, ScrollView, Text, TextInput, View } from 'react-native'; +import { KeyboardAvoidingView, Platform, Pressable, ScrollView, Text, TextInput, View } from 'react-native'; import { useState } from 'react'; import type { TranscriptBlock } from '@agenthub/shared/transcript'; @@ -231,7 +231,10 @@ export function ChatScreen({ const [evidenceSheetVisible, setEvidenceSheetVisible] = useState(false); return ( - + setEvidenceSheetVisible(false)} /> - + ); } function ChatHeader({