Skip to main content
The useResendVerificationCode hook resends the verification code for signup, login, or account linking.

Import

import { useResendVerificationCode } from "@getpara/react-native-wallet";

Usage

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}
    />
  );
}