Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Hook for initiating login with an external wallet via SIWE
useLoginExternalWallet
useVerifyExternalWallet
import { useLoginExternalWallet } from "@getpara/react-native-wallet";
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} />; }