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