You’re viewing the 2.0 (LTS) docs. View the current 3.0 version of this page.
useParaStatus hook returns the current initialization status of the Para client. Use it to delay rendering until the SDK is ready.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Hook for retrieving the initialization status of the Para client
useParaStatus hook returns the current initialization status of the Para client. Use it to delay rendering until the SDK is ready.
import { useParaStatus } from "@getpara/react-native-wallet";
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 />;
}