Fix: sammler chenges bugs

parent 12dd55fc
...@@ -30,6 +30,9 @@ export function AuthStack({ navigation }) { ...@@ -30,6 +30,9 @@ export function AuthStack({ navigation }) {
/> />
); );
}, },
headerStyle: {
backgroundColor: 'white',
},
headerLeftContainerStyle: { paddingLeft: 10 }, headerLeftContainerStyle: { paddingLeft: 10 },
headerRight: () => { headerRight: () => {
return ( return (
...@@ -65,7 +68,7 @@ export function AuthStack({ navigation }) { ...@@ -65,7 +68,7 @@ export function AuthStack({ navigation }) {
const stngobj = JSON.stringify(response.data) const stngobj = JSON.stringify(response.data)
console.log(stngobj + "logged out"); console.log(stngobj + "logged out");
console.log("Successfully logged out"); console.log("Successfully logged out");
// alert("Successfully Logged out") alert("Successfully Logged out")
navigation.navigate("SignIn") navigation.navigate("SignIn")
}) })
.catch(function (error) { .catch(function (error) {
...@@ -93,7 +96,7 @@ export function AuthStack({ navigation }) { ...@@ -93,7 +96,7 @@ export function AuthStack({ navigation }) {
const stngobj = JSON.stringify(response.data) const stngobj = JSON.stringify(response.data)
console.log(stngobj + "logged out"); console.log(stngobj + "logged out");
console.log("Successfully logged out"); console.log("Successfully logged out");
// alert("Successfully Logged out") alert("Successfully Logged out")
navigation.navigate("SignIn") navigation.navigate("SignIn")
}) })
.catch(function (error) { .catch(function (error) {
...@@ -121,7 +124,7 @@ export function AuthStack({ navigation }) { ...@@ -121,7 +124,7 @@ export function AuthStack({ navigation }) {
const stngobj = JSON.stringify(response.data) const stngobj = JSON.stringify(response.data)
console.log(stngobj + "logged out"); console.log(stngobj + "logged out");
console.log("Successfully logged out"); console.log("Successfully logged out");
// alert("Successfully Logged out") alert("Successfully Logged out")
navigation.navigate("SignIn") navigation.navigate("SignIn")
}) })
.catch(function (error) { .catch(function (error) {
...@@ -149,7 +152,7 @@ export function AuthStack({ navigation }) { ...@@ -149,7 +152,7 @@ export function AuthStack({ navigation }) {
const stngobj = JSON.stringify(response.data) const stngobj = JSON.stringify(response.data)
console.log(stngobj + "logged out"); console.log(stngobj + "logged out");
console.log("Successfully logged out"); console.log("Successfully logged out");
// alert("Successfully Logged out") alert("Successfully Logged out")
navigation.navigate("SignIn") navigation.navigate("SignIn")
}) })
.catch(function (error) { .catch(function (error) {
......
...@@ -32,7 +32,7 @@ export function HomeScreen({ navigation }) { ...@@ -32,7 +32,7 @@ export function HomeScreen({ navigation }) {
style={styles.images} style={styles.images}
> >
<ImageSliderz <ImageSliderz
height={425} height={450}
dataSource={[ dataSource={[
{ {
url: require("../assets/d.jpg"), url: require("../assets/d.jpg"),
...@@ -118,6 +118,7 @@ const styles = StyleSheet.create({ ...@@ -118,6 +118,7 @@ const styles = StyleSheet.create({
fontSize: 15, fontSize: 15,
alignSelf: "center", alignSelf: "center",
marginTop: 5, marginTop: 5,
marginBottom:10
}, },
saveExam: { saveExam: {
width: "70%", width: "70%",
......
...@@ -181,7 +181,7 @@ const styles = StyleSheet.create({ ...@@ -181,7 +181,7 @@ const styles = StyleSheet.create({
backgroundColor: "white", backgroundColor: "white",
}, },
buttonSub: { buttonSub: {
width: "80%", width: "83%",
padding: 10, padding: 10,
marginTop: 30, marginTop: 30,
marginLeft: 30, marginLeft: 30,
...@@ -247,7 +247,9 @@ const styles = StyleSheet.create({ ...@@ -247,7 +247,9 @@ const styles = StyleSheet.create({
flexDirection: "row", flexDirection: "row",
// marginBottom: 10, // marginBottom: 10,
justifyContent: "center", justifyContent: "center",
alignItems:"center",
borderRadius: 8, borderRadius: 8,
height:35
}, },
errorMsg: { errorMsg: {
color: "black", color: "black",
......
...@@ -74,6 +74,7 @@ export function SignUp({ navigation }) { ...@@ -74,6 +74,7 @@ export function SignUp({ navigation }) {
.then(function (response){ .then(function (response){
console.log("abc" + response) console.log("abc" + response)
actions.resetForm(); actions.resetForm();
alert("User successfully created")
// return response; // return response;
}) })
.catch(function(error){ .catch(function(error){
......
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