VerifyOTP = code => { | |
let phone_number = this.props.navigation.getParam("phone_number"); | |
fetch("https://api.ringcaptcha.com/xxxxxxxxxx/verify", { | |
method: "POST", | |
headers: { | |
Accept: "application/json", | |
"Content-Type": "application/json" | |
}, | |
body: `code=${code}&phone=${phone_number}&api_key=xxxxxxxxxxx` | |
}) | |
.then(res => { | |
alert("correct thank for joining"); | |
this.props.navigation.navigate("MainChat", { | |
username: this.props.navigation.getParam("username") | |
}); | |
}) | |
.catch(err => console.log(err)); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment