From 7b725c3fcdc1e9ba5a2e49ceebdfc53ea706036e Mon Sep 17 00:00:00 2001 From: jinyaqiu Date: Tue, 29 Jul 2025 15:08:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=82=B9=E5=87=BB=E5=8F=91=E9=80=81?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E9=94=AE=E7=9B=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/(tabs)/ask.tsx | 3 +-- components/ask/send.tsx | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/(tabs)/ask.tsx b/app/(tabs)/ask.tsx index 164e9bc..478a523 100644 --- a/app/(tabs)/ask.tsx +++ b/app/(tabs)/ask.tsx @@ -251,7 +251,6 @@ const styles = StyleSheet.create({ justifyContent: 'space-between', paddingVertical: 16, paddingHorizontal: 16, - backgroundColor: 'white', borderBottomWidth: 1, borderBottomColor: 'rgba(0,0,0,0.1)', elevation: 1, // Android @@ -279,7 +278,7 @@ const styles = StyleSheet.create({ }, contentContainer: { flex: 1, - position: 'relative', + position: 'relative' }, absoluteView: { position: 'absolute', diff --git a/components/ask/send.tsx b/components/ask/send.tsx index 37d5b12..ab9793e 100644 --- a/components/ask/send.tsx +++ b/components/ask/send.tsx @@ -85,6 +85,8 @@ export default function SendMessage(props: Props) { } // 将输入框清空 setInputValue(''); + // 关闭键盘 + Keyboard.dismiss(); } } useEffect(() => { @@ -102,7 +104,7 @@ export default function SendMessage(props: Props) { timestamp: new Date().toISOString() }]) } else { - console.log('Keyboard will show1213'); + } } );