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 useHasPregenWallet hook checks whether a pregenerated wallet has already been created for the given identifier.
Import
import { useHasPregenWallet } from "@getpara/react-native-wallet";
Usage
import { useHasPregenWallet } from "@getpara/react-native-wallet";
function CheckPregenWallet({ userEmail }: { userEmail: string }) {
const { hasPregenWalletAsync, data } = useHasPregenWallet();
const handleCheck = async () => {
await hasPregenWalletAsync({ pregenId: { email: userEmail } });
};
return (
<View>
{data !== undefined && <Text>Has wallet: {data ? "Yes" : "No"}</Text>}
<Button title="Check" onPress={handleCheck} />
</View>
);
}