d
This commit is contained in:
parent
048d2a905c
commit
cffa38605d
@ -1,4 +1,3 @@
|
|||||||
import ReturnArrow from "@/assets/icons/svg/returnArrow.svg";
|
|
||||||
import Chat from "@/components/ask/chat";
|
import Chat from "@/components/ask/chat";
|
||||||
import AskHello from "@/components/ask/hello";
|
import AskHello from "@/components/ask/hello";
|
||||||
import SendMessage from "@/components/ask/send";
|
import SendMessage from "@/components/ask/send";
|
||||||
@ -9,12 +8,9 @@ import { useRef, useState } from 'react';
|
|||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import {
|
import {
|
||||||
FlatList,
|
FlatList,
|
||||||
Keyboard,
|
|
||||||
KeyboardAvoidingView,
|
KeyboardAvoidingView,
|
||||||
Platform,
|
Platform,
|
||||||
StyleSheet,
|
StyleSheet,
|
||||||
TextInput,
|
|
||||||
TouchableOpacity,
|
|
||||||
View
|
View
|
||||||
} from 'react-native';
|
} from 'react-native';
|
||||||
import Animated, { useSharedValue } from 'react-native-reanimated';
|
import Animated, { useSharedValue } from 'react-native-reanimated';
|
||||||
@ -227,7 +223,7 @@ export default function AskScreen() {
|
|||||||
return (
|
return (
|
||||||
<View style={[styles.container, { paddingTop: insets.top, paddingBottom: insets.bottom }]}>
|
<View style={[styles.container, { paddingTop: insets.top, paddingBottom: insets.bottom }]}>
|
||||||
{/* 导航栏 */}
|
{/* 导航栏 */}
|
||||||
<View style={[styles.navbar, isHello && styles.hiddenNavbar]}>
|
{/* <View style={[styles.navbar, isHello && styles.hiddenNavbar]}>
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
style={styles.backButton}
|
style={styles.backButton}
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
@ -247,7 +243,7 @@ export default function AskScreen() {
|
|||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
<ThemedText style={styles.title} onPress={() => { router.push('/owner') }}>MemoWake</ThemedText>
|
<ThemedText style={styles.title} onPress={() => { router.push('/owner') }}>MemoWake</ThemedText>
|
||||||
<View style={styles.placeholder} />
|
<View style={styles.placeholder} />
|
||||||
</View>
|
</View> */}
|
||||||
|
|
||||||
<View style={styles.contentContainer}>
|
<View style={styles.contentContainer}>
|
||||||
<ThemedText>1</ThemedText>
|
<ThemedText>1</ThemedText>
|
||||||
@ -256,14 +252,18 @@ export default function AskScreen() {
|
|||||||
</ThemedText> */}
|
</ThemedText> */}
|
||||||
{/* 欢迎页面 */}
|
{/* 欢迎页面 */}
|
||||||
<Animated.View
|
<Animated.View
|
||||||
style={[styles.absoluteView, welcomeStyle, { zIndex: 1 }]}
|
style={[styles.absoluteView,
|
||||||
|
// welcomeStyle,
|
||||||
|
{ zIndex: 1 }]}
|
||||||
>
|
>
|
||||||
<AskHello setUserMessages={setUserMessages} setConversationId={setConversationId} setIsHello={setIsHello} />
|
<AskHello setUserMessages={setUserMessages} setConversationId={setConversationId} setIsHello={setIsHello} />
|
||||||
</Animated.View>
|
</Animated.View>
|
||||||
|
|
||||||
{/* 聊天页面 */}
|
{/* 聊天页面 */}
|
||||||
<Animated.View
|
<Animated.View
|
||||||
style={[styles.absoluteView, chatStyle, { zIndex: 0 }]}
|
style={[styles.absoluteView,
|
||||||
|
// chatStyle,
|
||||||
|
{ zIndex: 0 }]}
|
||||||
>
|
>
|
||||||
<Chat
|
<Chat
|
||||||
ref={chatListRef}
|
ref={chatListRef}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user