React SDK
The@yativo/crypto-sdk-react package wraps the TypeScript SDK with React hooks and pre-built components, giving you managed authentication state, data-fetching hooks, and drop-in UI widgets.
Installation
@yativo/crypto-sdk) is installed automatically as a peer dependency.
Provider Setup
Wrap your application (or the relevant subtree) withYativoProvider. This creates the SDK instance and makes it available to all hooks and components below.
useYativo() — Authentication & SDK Access
Hook Return Values
| Property | Type | Description |
|---|---|---|
sdk | YativoSDK | The underlying TypeScript SDK instance |
client | YativoSDK | Alias for sdk |
user | User | null | Currently authenticated user, or null |
login | (credentials) => Promise<void> | Login and store session |
logout | () => void | Clear session |
useWallets() — Create and List Wallets
useTransactions() — Send and List Transactions
useBalance() — Auto-Refreshing Balance Display
useCards() — Card Management
useSwap() — Swap Functionality
useStandaloneIban() — IBAN Management
useGasStations() — Gas Station Management
DepositWidget — Embedded Deposit UI
The DepositWidget renders a complete deposit flow: it displays a QR code, network selector, and deposit address — with real-time confirmation updates.
AutoForwardingControl — Auto-Forwarding Settings
YativoCardWidget — Embedded Card Display (PSE)
The card widget renders sensitive card details (PAN, CVV, expiry) inside a secure sandboxed iframe. Card data never touches your JavaScript.
Pre-Built UI Components
The React SDK ships utility components styled to match the Yativo design system:Theme Customization
Pass atheme object to YativoProvider to apply a global theme to all SDK components and widgets:
theme prop which merges with (and overrides) the global theme.

