Skip to main content
The useAccount hook returns the current user’s account information including their connection status, user ID, and linked auth methods.

Import

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

Usage

import { useAccount } from "@getpara/react-native-wallet";
import { View, Text } from "react-native";

function AccountStatus() {
  const account = useAccount();

  return (
    <View>
      <Text>Status: {account.isConnected ? "Connected" : "Not connected"}</Text>
      {account.userId && <Text>User ID: {account.userId}</Text>}
    </View>
  );
}