API Reference

Complete API reference for all WDK React Native UI Kit components

Component List

Component
Description

Numeric input with token/fiat toggle, balance helper and Max action

Token search & pick list with recent items and empty states

Network picker with gas level indicators and colors

Displays a balance value with optional masking and custom loader

Address input with QR scan and paste helpers, validation state

QR renderer for addresses/payment requests with labeling and styling

Single transaction row (sent/received) with token, amounts, network

Virtualized list of transactions using TransactionItem

Grid of seed words with optional editing and loading states


AmountInput

Numeric input component with token/fiat toggle, balance display, and Max functionality.

AmountInput - dark theme
AmountInput (dark theme)

Props

Prop
Type
Required
Default
Description

label

string

No

'Enter Amount'

Field label

value

string

Yes

Amount text value

onChangeText

(text: string) => void

Yes

Called when text changes

tokenSymbol

string

Yes

Token code, e.g. 'ETH', 'BTC'

tokenBalance

string

Yes

Token balance (e.g. '1.23')

tokenBalanceUSD

string

Yes

Balance in fiat (e.g. '$4200.00')

inputMode

'token' | 'fiat'

Yes

Current input mode

onToggleInputMode

() => void

Yes

Switch between token/fiat modes

onUseMax

() => void

Yes

Fill with maximum available amount

error

string

No

Error message to display

editable

boolean

No

true

Whether input is editable

Example


AssetSelector

Token selection component with search functionality and recent tokens.

Asset Selector - dark theme
AssetSelector (dark theme)

Props

Prop
Type
Required
Default
Description

tokens

Token[]

Yes

Full list of tokens to display/filter

recentTokens

string[]

Yes

Array of recent token names for Recent row

onSelectToken

(token: Token) => void

Yes

Called when user selects a token

Token Type

Example


Balance

Display component for showing balance values with optional masking and loading states.

Balance - dark theme
Balance (dark theme)
Balance amount hide - dark theme
Balance amount hide (dark theme)

Props

Prop
Type
Required
Default
Description

value

number

No

0

Balance number value

isLoading

boolean

No

false

Show loading state

Loader

React.ComponentType

No

Custom loader component

showHide

boolean

No

true

Toggle hide/show balance functionality

currency

string

No

'USD'

Currency label

EyeOpenIcon

React.ComponentType

No

default

Icon shown when balance is hidden

EyeClosedIcon

React.ComponentType

No

default

Icon shown when balance is visible

Example


CryptoAddressInput

Address input component with QR scanning and paste functionality.

Crypto Address Input - dark theme
CryptoAddressInput (dark theme)

Props

Prop
Type
Required
Default
Description

label

string

No

'Recipient Address'

Field label

value

string

Yes

Address text value

onChangeText

(text: string) => void

Yes

Called when text changes

placeholder

string

No

'T08p3BGPIuh1l934IIflu....Kc2GXhKc'

Placeholder text

onPaste

() => void

No

Paste action handler

onQRScan

() => void

No

Open QR scanner handler

editable

boolean

No

true

Whether input is editable

error

string

No

Error message to display

Example


QRCode

QR code renderer for addresses and payment requests.

QR Code - dark theme
QRCode (dark theme)

Props

Prop
Type
Required
Default
Description

value

string

Yes

Data to encode in QR code

size

number

No

200

QR code side length in pixels

color

string

No

theme.primary

Dot color

backgroundColor

string

No

'transparent'

Background color behind QR code

label

string

No

Optional title above QR code

containerStyle

ViewStyle

No

Wrapper style

labelStyle

any

No

Style for label text

Example


TransactionItem

Single transaction row component for displaying transaction details.

Transaction Item - dark theme
TransactionItem (dark theme)

Props

Prop
Type
Required
Default
Description

transaction

Transaction

Yes

Transaction data object

onPress

() => void

No

Row press handler

Transaction Type

Example


TransactionList

Virtualized list component for displaying multiple transactions.

Transaction List - dark theme
TransactionList (dark theme)

Props

Prop
Type
Required
Default
Description

transactions

Transaction[]

Yes

Array of transaction objects

Example


NetworkSelector

Network selection component with gas level indicators.

Props

Prop
Type
Required
Default
Description

networks

Network[]

Yes

Array of available networks

onSelectNetwork

(network: Network) => void

Yes

Called when network is selected

Network Type

Example


SeedPhrase

Grid component for displaying and editing seed phrase words.

Props

Prop
Type
Required
Default
Description

words

string[]

Yes

Array of seed words (12/24, etc.)

editable

boolean

No

false

Allow editing of word inputs

onWordChange

(index: number, word: string) => void

No

Called when word is edited

onKeyPress

(index: number, key: string) => void

No

Handle key press events

isLoading

boolean

No

false

Show loading/generating state

Example


Next Steps


Need Help?