Skip to content

Commit 3bc14d0

Browse files
committed
Fixed bugs
1 parent 9f729ff commit 3bc14d0

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

Screens/HomePage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ function EachCard({title, discreption, navigation, route, image, color, delay})
259259
<Animatable.View
260260
animation={'fadeInUp'}
261261
delay={delay}
262-
duration={500}
262+
duration={300}
263263
style={{
264264
flex: 1,
265265
backgroundColor: color,

Screens/ImageChat.js

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,14 @@ export default function ImageChat({navigation}) {
4848
])
4949
setvalue('');
5050
setloading(true);
51-
const response = await GetImageResponse(images,val);
52-
setchat((history)=>[...history,
53-
{role:'model', parts:response}
54-
])
51+
try{
52+
const response = await GetImageResponse(images,val);
53+
setchat((history)=>[...history,
54+
{role:'model', parts:response}
55+
])
56+
}catch (e) {
57+
58+
}
5559
setloading(false);
5660
}
5761
useEffect(() => {
@@ -112,11 +116,20 @@ export default function ImageChat({navigation}) {
112116
<View style={{
113117
flex:1,
114118
backgroundColor:'#1e1b38',
119+
width:windowWidth,
115120
}}>
116121
<ImageView visible={visible} setvisible={setVisible} image={image}/>
117122
<TopHeader navigation={navigation} text={'Image'} righticon={
118123
<TouchableOpacity onPress={()=>{
119124
setVisible(true)
125+
}} style={{
126+
backgroundColor:'rgb(42,82,176)',
127+
height:40,
128+
width:40,
129+
alignItems:'center',
130+
justifyContent:'center',
131+
borderRadius:10,
132+
elevation:10
120133
}}>
121134
<FontAwesomeIcon icon={faEye} style={{
122135
color:'white',

0 commit comments

Comments
 (0)