Closed
Description
This doesn't seem to work even though the route is defined. Is this the wrong syntax?
onCreateAcctPress: function() {
if (this.state.password === this.state.passwordConfirmation)
{
//start to sign up user into parse
var user = new Parse.User();
user.set("username", this.state.username);
user.set("password", this.state.password);
user.set("email", this.state.username);
user.signUp(null, {
//navigate to new component (.immediatelyResetRouteStack)
//when doing so and we pass new views of app (routes)
success: (user) => {
Actions.introductions
console.log("Successful Signup!");
},
error: (user, error) => {
this.setState({ errorMessage: error.message });
console.log(error);
}
});
} else {
this.setState({ errorMessage: "Your passwords are not the same!"});
}
},
Metadata
Metadata
Assignees
Labels
No labels