useParaStatus hook returns the current initialization status of the Para client. Use it to delay rendering until the SDK is ready.
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 />;
}