f
This commit is contained in:
parent
238e8eb79a
commit
e770e412ad
@ -1,12 +1,21 @@
|
|||||||
|
import ReturnArrow from "@/assets/icons/svg/returnArrow.svg";
|
||||||
|
import Chat from "@/components/ask/chat";
|
||||||
|
import SendMessage from "@/components/ask/send";
|
||||||
import { ThemedText } from "@/components/ThemedText";
|
import { ThemedText } from "@/components/ThemedText";
|
||||||
import { WEBSOCKET_ENDPOINT } from "@/lib/websocket-util";
|
import { WEBSOCKET_ENDPOINT } from "@/lib/websocket-util";
|
||||||
import { Message } from "@/types/ask";
|
import { Message } from "@/types/ask";
|
||||||
import { useLocalSearchParams, useRouter } from "expo-router";
|
import { useLocalSearchParams, useRouter } from "expo-router";
|
||||||
import { useRef, useState } from 'react';
|
import React, { useRef, useState } from 'react';
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import {
|
import {
|
||||||
|
Animated,
|
||||||
FlatList,
|
FlatList,
|
||||||
|
Keyboard,
|
||||||
|
KeyboardAvoidingView,
|
||||||
|
Platform,
|
||||||
StyleSheet,
|
StyleSheet,
|
||||||
|
TextInput,
|
||||||
|
TouchableOpacity,
|
||||||
View
|
View
|
||||||
} from 'react-native';
|
} from 'react-native';
|
||||||
import { useSharedValue } from 'react-native-reanimated';
|
import { useSharedValue } from 'react-native-reanimated';
|
||||||
@ -219,7 +228,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={() => {
|
||||||
@ -239,7 +248,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,7 +265,7 @@ export default function AskScreen() {
|
|||||||
</Animated.View> */}
|
</Animated.View> */}
|
||||||
|
|
||||||
{/* 聊天页面 */}
|
{/* 聊天页面 */}
|
||||||
{/* <Animated.View
|
<Animated.View
|
||||||
style={[styles.absoluteView,
|
style={[styles.absoluteView,
|
||||||
// chatStyle,
|
// chatStyle,
|
||||||
{ zIndex: 0 }]}
|
{ zIndex: 0 }]}
|
||||||
@ -272,11 +281,11 @@ export default function AskScreen() {
|
|||||||
showsVerticalScrollIndicator={false}
|
showsVerticalScrollIndicator={false}
|
||||||
// onContentSizeChange={() => scrollToEnd()}
|
// onContentSizeChange={() => scrollToEnd()}
|
||||||
/>
|
/>
|
||||||
</Animated.View> */}
|
</Animated.View>
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
{/* 输入框区域 */}
|
{/* 输入框区域 */}
|
||||||
{/* <KeyboardAvoidingView
|
<KeyboardAvoidingView
|
||||||
behavior={Platform.OS === "ios" ? "padding" : "height"}
|
behavior={Platform.OS === "ios" ? "padding" : "height"}
|
||||||
keyboardVerticalOffset={0} >
|
keyboardVerticalOffset={0} >
|
||||||
<View style={styles.inputContainer} key={conversationId}>
|
<View style={styles.inputContainer} key={conversationId}>
|
||||||
@ -289,7 +298,7 @@ export default function AskScreen() {
|
|||||||
setSelectedImages={setSelectedImages}
|
setSelectedImages={setSelectedImages}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
</KeyboardAvoidingView> */}
|
</KeyboardAvoidingView>
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user