Token Swap
Swap one token for another with the trade route drawn out. Slide to confirm and a light travels the route stop by stop until the tokens land in your receive panel.
About the Token Swap screen
Banking and money screens for React Native: dashboards, cards, transfers, bills, budgets and investments, with amounts set in even-width digits. This is one of 24 finance screens.
How it behaves
It responds to taps and scrolling. On a phone you feel a light tap on buttons, a selection tick when you switch an option and a warning buzz when something can't be done yet.
- Keeps fields and actions above the on-screen keyboard.
- Money is set with even-width digits and smaller cents, so totals don't wobble as they change.
- Respects Reduce Motion: movement drops out and the feedback stays.
Make it yours
npx @lumioui/cli add pro/finance-token-swap copies the screen into screens/finance/token-swap.tsx along with the 4 components it uses, so the source is yours to edit.
It's shown here in the green accent: wrap it in a different <Accent> to recolour every button, highlight and chart at once. It follows light and dark mode, and is designed for a dark canvas, and runs on iOS and Android, including Expo Go.
Built from
- Animated NumberNumber that moves to each new value as a calm count-up or a roll where only the changed digits turn, set in type or in dot-matrix LEDs whose dots switch on in place. Screen readers announce just the final value, not every step.
- IconIcon set drawn on one consistent grid, sized and coloured from your theme. The heart, star and bookmark can fill in place inside their outline, then fade back out.
- Slide to ConfirmSlide-to-confirm control for payments and other deliberate actions. The thumb follows your finger, shows progress while the action runs and ends with a check; a press-and-hold mode is included.
- TextThemed type scale from caption to display that follows light and dark mode. Includes a pull-quote style with an accent rule and a quieter dimmed tone for secondary text.