Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
VerifyOTP = code => {
let phone_number = this.props.navigation.getParam("phone_number");
fetch("", {
method: "POST",
headers: {
Accept: "application/json",
"Content-Type": "application/json"
body: `code=${code}&phone=${phone_number}&api_key=d3fb699623fdde7ba6ee8d010893edfe02c01f3c`
.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
You can’t perform that action at this time.