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 useLoginExternalWallet hook initiates the Sign-In With Ethereum (SIWE) flow for an external wallet. After calling it, use useVerifyExternalWallet to complete verification.
Import
import { useLoginExternalWallet } from "@getpara/react-native-wallet";
Usage
import { useLoginExternalWallet } from "@getpara/react-native-wallet";
function ExternalWalletLogin({ walletInfo }) {
const { loginExternalWalletAsync, isPending } = useLoginExternalWallet();
const handleLogin = async () => {
try {
const result = await loginExternalWalletAsync({ externalWallet: walletInfo });
// Proceed to useVerifyExternalWallet with the result
} catch (err) {
console.error(err);
}
};
return <Button title={isPending ? "Connecting..." : "Connect Wallet"} onPress={handleLogin} disabled={isPending} />;
}