@@ -4,55 +4,64 @@ import { View, Image, Text, TextInput, ScrollView, TouchableOpacity } from 'reac
44import { colors } from "../../AppStyles" ;
55
66
7- export default function ContactUS ( { navigation } ) {
7+ export default function ContactUS ( { navigation, route } ) {
8+
9+ // get pageName from the parameters passed to the naviagtion
10+ const { pageName } = route . params ;
11+
812 return (
913 < View style = { styles . container } >
1014 < View style = { styles . upperBox } >
15+ < TouchableOpacity onPress = { ( ) => { navigation . navigate ( { name : pageName } ) } } >
16+ < Image source = { require ( '../../assets/AboutUs/ep_close-bold.png' ) } style = { styles . close } />
17+ </ TouchableOpacity >
1118 < Image source = { require ( '../../assets/ContactUs/Contact_us.png' ) } style = { styles . cover } />
1219 </ View >
13- < ScrollView
14- contentContainerStyle = { styles . scrollContainer }
15- showsVerticalScrollIndicator = { false }
16- >
17- < View style = { styles . textInputContainer } >
18- < View style = { styles . inputContainer } >
19- < Text style = { styles . title } > { translate ( 'ContactUs.fullname' ) } </ Text >
20- < TextInput
21- style = { styles . input }
22- placeholder = { translate ( 'ContactUs.fullname' ) }
23- placeholderTextColor = { colors . Grey }
24- />
25- </ View >
26- < View style = { styles . inputContainer } >
27- < Text style = { styles . title } > { translate ( 'ContactUs.email' ) } </ Text >
28- < TextInput
29- style = { styles . input }
30- placeholder = { translate ( 'ContactUs.email' ) }
31- placeholderTextColor = { colors . Grey }
32- />
20+ < View style = { styles . container } >
21+ < ScrollView
22+ contentContainerStyle = { styles . scrollContainer }
23+ showsVerticalScrollIndicator = { false }
24+ >
25+ < View style = { styles . textInputContainer } >
26+ < View style = { styles . inputContainer } >
27+ < Text style = { styles . title } > { translate ( 'ContactUs.fullname' ) } </ Text >
28+ < TextInput
29+ style = { styles . input }
30+ placeholder = { translate ( 'ContactUs.fullname' ) }
31+ placeholderTextColor = { colors . Grey }
32+ />
33+ </ View >
34+ < View style = { styles . inputContainer } >
35+ < Text style = { styles . title } > { translate ( 'ContactUs.email' ) } </ Text >
36+ < TextInput
37+ style = { styles . input }
38+ placeholder = { translate ( 'ContactUs.email' ) }
39+ placeholderTextColor = { colors . Grey }
40+ />
41+ </ View >
42+ < View style = { styles . inputContainer } >
43+ < Text style = { styles . title } > { translate ( 'ContactUs.subject' ) } </ Text >
44+ < TextInput
45+ style = { styles . input }
46+ placeholder = { translate ( 'ContactUs.subject_input' ) }
47+ placeholderTextColor = { colors . Grey }
48+ />
49+ </ View >
50+ < View style = { styles . inputContainer } >
51+ < Text style = { styles . title } > { translate ( 'ContactUs.message' ) } </ Text >
52+ < TextInput
53+ style = { styles . input_message }
54+ placeholder = { translate ( 'ContactUs.write_message' ) }
55+ placeholderTextColor = { colors . Grey }
56+ multiline = { true }
57+ />
58+ </ View >
59+ < TouchableOpacity style = { styles . button } >
60+ < Text style = { styles . submit } > { translate ( 'ContactUs.submit' ) } </ Text >
61+ </ TouchableOpacity >
3362 </ View >
34- < View style = { styles . inputContainer } >
35- < Text style = { styles . title } > { translate ( 'ContactUs.subject' ) } </ Text >
36- < TextInput
37- style = { styles . input }
38- placeholder = { translate ( 'ContactUs.subject_input' ) }
39- placeholderTextColor = { colors . Grey }
40- />
41- </ View >
42- < View style = { styles . inputContainer } >
43- < Text style = { styles . title } > { translate ( 'ContactUs.message' ) } </ Text >
44- < TextInput
45- style = { styles . input_message }
46- placeholder = { translate ( 'ContactUs.write_message' ) }
47- placeholderTextColor = { colors . Grey }
48- multiline = { true }
49- />
50- </ View >
51- < TouchableOpacity style = { styles . button } >
52- < Text style = { styles . submit } > { translate ( 'ContactUs.submit' ) } </ Text >
53- </ TouchableOpacity >
54- </ View >
55- </ ScrollView >
63+ </ ScrollView >
64+ </ View >
5665 </ View >
5766 )
5867}
0 commit comments