Commit 7a63957c authored by Thomas's avatar Thomas
Browse files

back button

parent abbaf95e
<?php
$json = file_get_contents('php://input');
// decoding the received JSON and store into $obj variable.
$obj = json_decode($json,true);
// name store into $name.
$name = $obj['name'];
// same with $email.
$email = $obj['email'];
// same with $motivation.
$motivation = $obj['motivation'];
$to = $email;
$subject = "Request made" ;
$message = "Dear,\n\nThanks for your request for " . $name . "!\nWe will do research to the brand you requested to be researched. In case we want to contact you we will do that at " . $email . "
\nKind regards,\nThe TraCloSo team";
$headers = "From: info@tracloso.com" . "\r\n" . "BCC: thomas.hietkamp@gmail.com";
mail($to,$subject,$message,$headers);
?>
......@@ -7,12 +7,16 @@ import { SafeAreaView } from 'react-native-safe-area-context';
import Icon from "react-native-vector-icons/AntDesign";
//view for the About screen
export default function About() {
export default function About({navigation}) {
return (
<SafeAreaView style={style.container}>
<View style={style.AHeader}>
<Text style={style.AHeaderText}>Contact</Text>
<Text style={style.AHeaderText}>About</Text>
</View>
<TouchableOpacity style={style.BackButton} onPress={() => navigation.goBack()}>
<MaterialCommunityIcons style={style.Arrow} name="chevron-left" size={18}/>
<Text>back</Text>
</TouchableOpacity>
</SafeAreaView>
);
}
......@@ -39,5 +43,17 @@ const style = StyleSheet.create({
marginTop: 20,
}
})
}
},
BackButton: {
flexDirection: 'row',
marginLeft: 10,
marginTop: 10
},
Arrow: {
...Platform.select({
android: {
marginTop: 2,
}
})
},
})
\ No newline at end of file
......@@ -7,12 +7,16 @@ import { SafeAreaView } from 'react-native-safe-area-context';
import Icon from "react-native-vector-icons/AntDesign";
//view for the Contact screen
export default function Contact() {
export default function Contact( {navigation}) {
return (
<SafeAreaView style={style.container}>
<View style={style.CHeader}>
<Text style={style.CHeaderText}>Contact</Text>
</View>
<TouchableOpacity style={style.BackButton} onPress={() => navigation.goBack()}>
<MaterialCommunityIcons style={style.Arrow} name="chevron-left" size={18}/>
<Text>back</Text>
</TouchableOpacity>
</SafeAreaView>
);
}
......@@ -39,5 +43,17 @@ const style = StyleSheet.create({
marginTop: 20,
}
})
}
},
BackButton: {
flexDirection: 'row',
marginLeft: 10,
marginTop: 10
},
Arrow: {
...Platform.select({
android: {
marginTop: 2,
}
})
},
})
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment