-
Notifications
You must be signed in to change notification settings - Fork 2
/
VolunteerOption.js
91 lines (85 loc) · 2.4 KB
/
VolunteerOption.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import { StyleSheet, Text, TouchableOpacity, View,Alert } from 'react-native';
import { useNavigation } from '@react-navigation/native';
import Icon from 'react-native-vector-icons/FontAwesome';
export const VolunteerOption = ({ setIsOrganisation }) => {
const navigation = useNavigation();
return (
<View style={styles.container}>
<View style={styles.buttonContainer}>
<TouchableOpacity style={styles.button}
onPress={() => {
setIsOrganisation(false),
navigation.navigate('ProfileCreation')}}
>
<Icon name="user" style={styles.icon}/>
<Text style={styles.text}>Volunteer</Text>
</TouchableOpacity>
<Text style={styles.or} >OR</Text>
<TouchableOpacity style={styles.button}
onPress={() => {setIsOrganisation(true);
navigation.navigate('OrgProfileCreation')}}
>
<Icon name="building" style={styles.icon}/>
<Text style={styles.text}>Organization</Text>
</TouchableOpacity>
{/* <Text style={styles.signintext} >Already Registered? <Text onPress={() => {
navigation.navigate("Login")
}} style={styles.signin}>Sign in</Text> Instead</Text> */}
</View>
</View>
)
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#F7FFF7",
alignItems: 'center',
justifyContent: 'center',
alignContent: 'center',
},
buttonContainer: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
alignContent: 'center',
},
button: {
flexDirection:'row',
marginTop: 20,
backgroundColor: "#1A535C",
width: 300,
height: 100,
padding: 10,
alignItems: 'center',
justifyContent: 'center',
borderRadius:5,
},
text: {
paddingLeft:10,
color: "#F7FFF7",
fontSize: 25,
fontFamily: 'Poppins',
},
or: {
color: "#1A535C",
fontSize: 20,
fontFamily: 'Poppins',
marginTop: 20,
},
signintext: {
color: "#1A535C",
fontSize: 16,
fontFamily: 'Poppins',
marginTop: 20,
},
signin: {
color: "#1A535C",
fontSize: 16,
fontFamily: 'Poppins',
fontWeight: 'bold',
},
icon:{
fontSize:50,
color:"#F7FFF7",
}
});