fix: Image
This commit is contained in:
parent
0482f23d97
commit
2ff82495ac
@ -3,7 +3,7 @@ import { webSocketManager } from "@/lib/websocket-util";
|
||||
import { Message } from "@/types/ask";
|
||||
import { Dispatch, SetStateAction, useCallback, useRef } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Dimensions, Image, StyleSheet, TouchableOpacity, View } from 'react-native';
|
||||
import { StyleSheet, TouchableOpacity, useWindowDimensions, View } from 'react-native';
|
||||
import { createNewConversation } from "./utils";
|
||||
|
||||
interface AskHelloProps {
|
||||
@ -13,8 +13,7 @@ interface AskHelloProps {
|
||||
}
|
||||
export default function AskHello({ setUserMessages, setConversationId, setIsHello }: AskHelloProps) {
|
||||
const { t } = useTranslation();
|
||||
const width = Dimensions.get('window').width;
|
||||
const height = Dimensions.get('window').height;
|
||||
const { width, height } = useWindowDimensions();
|
||||
|
||||
//
|
||||
const inFlightRef = useRef(false);
|
||||
@ -90,9 +89,9 @@ export default function AskHello({ setUserMessages, setConversationId, setIsHell
|
||||
{"\n"}
|
||||
{t('ask.iAmMemo', { ns: 'ask' })}
|
||||
</ThemedText>
|
||||
<View>
|
||||
{/* <View>
|
||||
<Image source={require('@/assets/images/png/icon/ip.png')} style={{ width: width * 0.5, height: height * 0.3 }} />
|
||||
</View>
|
||||
</View> */}
|
||||
<ThemedText className="!text-textPrimary text-center -mt-10" style={{ fontSize: 16 }}>
|
||||
{t('ask.ready', { ns: 'ask' })}
|
||||
{"\n"}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user