useBlinkMobileDeposit hook wraps MobileDeposit with reactive React state. It manages the instance lifecycle and cleans up on unmount.
Usage
Parameters
The hook accepts a singleMobileDepositConfig 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
Deep link setup
The hook does not set up deep link listeners. This keeps it platform-agnostic. UsehandleDeepLink in your app’s deep link handler:
Error handling
The hook providesdisplayMessage as a convenience for showing user-friendly error text: