useResendVerificationCode hook resends the verification code for signup, login, or account linking.
Hook for resending a verification code
useResendVerificationCode hook resends the verification code for signup, login, or account linking.
import { useResendVerificationCode } from "@getpara/react-native-wallet";
import { useResendVerificationCode } from "@getpara/react-native-wallet";
import { Button } from "react-native";
function ResendCodeButton() {
const { resendVerificationCodeAsync, isPending } = useResendVerificationCode();
return (
<Button
title={isPending ? "Sending..." : "Resend Code"}
onPress={() => resendVerificationCodeAsync({ type: "SIGNUP" })}
disabled={isPending}
/>
);
}