Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
sendOtp = phone_number => {
fetch(`https://api.ringcaptcha.com/${APP_KEY}/code/sms`, {
method: "POST",
headers: {
Accept: "application/json",
"Content-Type": "application/json"
},
body: `phone=${phone_number}&api_key=${API_KEY}`
}).then(res => {
console.log(res);
alert("OTP will delivery soon checking in next screen");
this.props.navigation.navigate("OTPChecking", {
phone_number: phone_number
});
});
};
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.