-
Notifications
You must be signed in to change notification settings - Fork 0
/
ProfileScreen.js
55 lines (49 loc) · 2.06 KB
/
ProfileScreen.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import { StyleSheet, Text, View,ScrollView } from 'react-native'
import {React, useState} from 'react'
import {auth} from '../firebase';
import IonIcon from 'react-native-vector-icons/Ionicons';
import { useNavigation } from '@react-navigation/core';
const ProfileScreen = () => {
const navigation=useNavigation();
const [col, setCol] = useState('gray');
const [col2, setCol2] = useState('gray');
const [col3, setCol3] = useState('gray');
const [col4, setCol4] = useState('#2D809B');
const [col5, setCol5] = useState('gray');
return (
<View style={styles.container}><ScrollView>
<View >
</View>
</ScrollView>
<View style={styles.footer_navigation}>
<IonIcon style={styles.icons} name="home" size={30} color={col} onPress={() => {setCol("#2D809B"); setCol2("gray"); setCol3("gray"); setCol4("gray");setCol5("gray");navigation.navigate("Home")}}/>
<IonIcon style={styles.icons} name="search" size={30} color={col2} onPress={() => {setCol("gray"); setCol2("#2D809B"); setCol3("gray"); setCol4("gray");setCol5("gray");navigation.navigate("clinic")}}/>
<IonIcon style={styles.icons} name="star" size={30} color={col5} onPress={() => {setCol("gray"); setCol2("gray"); setCol3("gray"); setCol4("gray");setCol5("#2D809B");navigation.navigate("hotel")}}/>
<IonIcon style={styles.icons} name="earth" size={30} color={col3} onPress={() => {setCol("gray"); setCol2("gray"); setCol3("#2D809B"); setCol4("gray");setCol5("gray");navigation.navigate("plane")}}/>
<IonIcon style={styles.icons} name="person" size={30} color={col4} onPress={() => {setCol("gray"); setCol2("gray"); setCol3("gray"); setCol4("#2D809B");setCol5("gray");}}/>
</View></View>
)
}
export default ProfileScreen
const styles = StyleSheet.create({
footer_navigation:{
flexDirection:"row",
alignItems:"center",
justifyContent:"center",
height:80,
backgroundColor:'#fff',
width:"100%"
},
icons:{
marginLeft:10,
marginRight:10,
paddingLeft:15,
paddingRight:15,
paddingVertical:10
},
container:{
alignItems:"center",
flex:1,
width:"100%"
}
})