Ecommerce

Gift Cards

Ecommerce Pro

Keep gift cards in a swipeable wallet with a combined balance and a field for redeeming codes. Redeeming lifts the code out of the field, slides a new card into the wallet and counts the balance up.

About the Gift Cards screen

A full shopping flow for React Native and Expo: browsing, product pages, cart, checkout, payment, orders and returns. This is one of 31 ecommerce screens.

How it behaves

It responds to taps, scrolling and swipes. On a phone you feel a light tap on buttons, a success pulse when the task completes, a selection tick when you switch an option and a warning buzz when something can't be done yet.

  • Handles errors in place, next to the thing that failed.
  • Keeps fields and actions above the on-screen keyboard.
  • The header reacts to scrolling instead of sitting on top of the content.
  • Respects Reduce Motion: movement drops out and the feedback stays.

Make it yours

npx @lumioui/cli add pro/ecommerce-gift-cards copies the screen into screens/ecommerce/gift-cards.tsx along with the 7 components it uses, so the source is yours to edit. It's shown in neutral ink: wrap it in an <Accent> to give it your brand colour. It follows light and dark mode, 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.
  • ButtonPill button that presses down under your finger, in eight styles from solid to glass, with a built-in loading state that swaps in place while an action runs.
  • Coupon InputPromo and gift code field that turns into a perforated ticket showing your saving when the code works, and explains why when it doesn’t. The ticket also works on its own for coupon wallets.
  • 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.
  • InputLabelled text field that lights up on focus, draws a check when you mark the value as good, and gives one quick flicker on error. Supports helper text, icons and a fill-as-you-type underline.
  • SeparatorThin divider line, horizontal or vertical. It can draw itself in as a page builds, or show a perforated tear line for tickets and receipts.
  • 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.

More in Ecommerce

View all 31