Skip to content

Documentation / expo / isReconnecting

Function: isReconnecting()

isReconnecting(s)

isReconnecting(s): s is EmbeddedWalletReconnectingState

A type predicate to narrow the Embedded Wallet state to the Connected state.

Parameters

s: EmbeddedWalletState

Returns

s is EmbeddedWalletReconnectingState

Example

ts
import {useEmbeddedWallet, useEmbeddedSolanaWalet, isConnected} from '@privy-io/expo';

const wallet = useEmbeddedWallet();
/// OR
const wallet = useEmbeddedSolanaWallet();

{isReconnecting(wallet) && (
  Reconecting...
)}

isReconnecting(s)

isReconnecting(s): s is EmbeddedSolanaWalletReconnectingState

A type predicate to narrow the Embedded Wallet state to the Connected state.

Parameters

s: EmbeddedSolanaWalletState

Returns

s is EmbeddedSolanaWalletReconnectingState

Example

ts
import {useEmbeddedWallet, useEmbeddedSolanaWalet, isConnected} from '@privy-io/expo';

const wallet = useEmbeddedWallet();
/// OR
const wallet = useEmbeddedSolanaWallet();

{isReconnecting(wallet) && (
  Reconecting...
)}