fix: ws api
This commit is contained in:
parent
81c1bf7c88
commit
2095da05cd
@ -1,5 +1,4 @@
|
|||||||
import ReturnArrow from "@/assets/icons/svg/returnArrow.svg";
|
import ReturnArrow from "@/assets/icons/svg/returnArrow.svg";
|
||||||
import Chat from "@/components/ask/chat";
|
|
||||||
import SendMessage from "@/components/ask/send";
|
import SendMessage from "@/components/ask/send";
|
||||||
import { ThemedText } from "@/components/ThemedText";
|
import { ThemedText } from "@/components/ThemedText";
|
||||||
import { useWebSocketStreamHandler } from "@/hooks/useWebSocketStreamHandler";
|
import { useWebSocketStreamHandler } from "@/hooks/useWebSocketStreamHandler";
|
||||||
@ -9,7 +8,6 @@ import { useFocusEffect, useLocalSearchParams, useRouter } from "expo-router";
|
|||||||
import { useCallback, useEffect, useRef, useState } from 'react';
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import {
|
import {
|
||||||
Animated,
|
|
||||||
FlatList,
|
FlatList,
|
||||||
Keyboard,
|
Keyboard,
|
||||||
KeyboardAvoidingView,
|
KeyboardAvoidingView,
|
||||||
@ -252,6 +250,9 @@ export default function AskScreen() {
|
|||||||
</View>
|
</View>
|
||||||
|
|
||||||
<View style={styles.contentContainer}>
|
<View style={styles.contentContainer}>
|
||||||
|
<View>
|
||||||
|
{process.env.EXPO_PUBLIC_WEBSOCKET_ENDPOINT}
|
||||||
|
</View>
|
||||||
{/* 欢迎页面 */}
|
{/* 欢迎页面 */}
|
||||||
{/* <Animated.View
|
{/* <Animated.View
|
||||||
style={[styles.absoluteView, welcomeStyle, { zIndex: 1 }]}
|
style={[styles.absoluteView, welcomeStyle, { zIndex: 1 }]}
|
||||||
@ -260,7 +261,7 @@ export default function AskScreen() {
|
|||||||
</Animated.View> */}
|
</Animated.View> */}
|
||||||
|
|
||||||
{/* 聊天页面 */}
|
{/* 聊天页面 */}
|
||||||
<Animated.View
|
{/* <Animated.View
|
||||||
style={[styles.absoluteView, chatStyle, { zIndex: 0 }]}
|
style={[styles.absoluteView, chatStyle, { zIndex: 0 }]}
|
||||||
>
|
>
|
||||||
<Chat
|
<Chat
|
||||||
@ -274,7 +275,7 @@ export default function AskScreen() {
|
|||||||
showsVerticalScrollIndicator={false}
|
showsVerticalScrollIndicator={false}
|
||||||
// onContentSizeChange={() => scrollToEnd()}
|
// onContentSizeChange={() => scrollToEnd()}
|
||||||
/>
|
/>
|
||||||
</Animated.View>
|
</Animated.View> */}
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
{/* 输入框区域 */}
|
{/* 输入框区域 */}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user