Skip to content

Documentation / expo / isCreating

Function: isCreating()

isCreating(s)

isCreating(s): s is EmbeddedWalletCreatingState

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

Parameters

s: EmbeddedWalletState

Returns

s is EmbeddedWalletCreatingState

Example

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

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

{isCreating(wallet) && (
  Creating wallet....
)}

isCreating(s)

isCreating(s): s is EmbeddedSolanaWalletCreatingState

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

Parameters

s: EmbeddedSolanaWalletState

Returns

s is EmbeddedSolanaWalletCreatingState

Example

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

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

{isCreating(wallet) && (
  Creating wallet....
)}