Documentation Index
Fetch the complete documentation index at: https://docs.getpara.com/llms.txt
Use this file to discover all available pages before exploring further.
The useUpdatePregenWalletIdentifier hook updates the identifier (email, phone, or custom ID) associated with an existing pregenerated wallet.
Import
import { useUpdatePregenWalletIdentifier } from "@getpara/react-native-wallet";
Usage
import { useUpdatePregenWalletIdentifier } from "@getpara/react-native-wallet";
function UpdateIdentifierStep({ walletId, newEmail }: { walletId: string; newEmail: string }) {
const { updatePregenWalletIdentifierAsync, isPending } = useUpdatePregenWalletIdentifier();
const handleUpdate = async () => {
try {
await updatePregenWalletIdentifierAsync({
walletId,
newPregenId: { email: newEmail },
});
} catch (err) {
console.error(err);
}
};
return <Button title={isPending ? "Updating..." : "Update Identifier"} onPress={handleUpdate} disabled={isPending} />;
}