@reown/appkit-react-native
.
useAppKit()
open
function:
Variable | Description |
---|---|
Connect | Principal view of the modal - default view when disconnected. |
Account | User profile - default view when connected. |
Networks | List of available networks - you can select and target a specific network before connecting. |
WhatIsANetwork | ”What is a network” onboarding view. |
WhatIsAWallet | ”What is a wallet” onboarding view. |
useAccount()
useProvider()
useProvider()
returns the provider for the currently active network. You can also get a provider for a specific namespace by passing an argument, e.g., useProvider('eip155')
, useProvider('solana')
, or useProvider('bitcoin')
.
useProvider
might be used differently or in conjunction with Wagmi’s hooks)useWalletInfo()
walletInfo
can be found in the WalletInfo
type definition in packages/common/src/utils/TypeUtil.ts.
useAppKitEventSubscription()
AppKitEvents
within packages/core/src/utils/TypeUtil.ts.
This hook provides a way to subscribe to a specific modal event and receives a callback function that is executed when the event is triggered.
useAppKitState()
useAppKitState
(which previously exposed open
(modal state) and selectedNetworkId
) is now incorporated into useAppKit()
(for modal control like isOpen
) and useAccount()
(for chainId
).
useDisconnect()
useDisconnect
(which previously exposed a disconnect
function) is now available directly from the useAppKit()
hook.