Skip to main content
The useParaStatus hook returns the current initialization status of the Para client. Use it to delay rendering until the SDK is ready.

Import

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

Usage

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

function AppShell() {
  const status = useParaStatus();

  if (!status.isReady) {
    return (
      <View>
        <ActivityIndicator />
        <Text>Initializing...</Text>
      </View>
    );
  }

  return <App />;
}