Skip to main content
The useBlinkMobileDeposit hook wraps MobileDeposit with reactive React state. It manages the instance lifecycle and cleans up on unmount.

Usage

Parameters

The hook accepts a single MobileDepositConfig object. See MobileDeposit Class for the full config reference. The MobileDeposit instance is created once on first render and destroyed on unmount. Config is read during initialization only, so changing the appearance prop on a mounted component has no effect. Either pass appearance: { theme: 'system' } so the hosted flow tracks the device theme on its own, or remount the component with a key when your theme changes. See Dark and light mode.

Return value

The hook does not set up deep link listeners. This keeps it platform-agnostic. Use handleDeepLink in your app’s deep link handler:

Error handling

The hook provides displayMessage as a convenience for showing user-friendly error text:
See Mobile Error Codes for the full reference.