Prescription Scan to Checkout Flow
A camera locks onto a prescription and labels its fields, then the flow moves through a product page, promo code, checkout and a live delivery map. HTML and React Native share one timeline that autoplays or steps by tap.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "prescription-scan-to-checkout-flow" to this project. The full source is attached at the end of this prompt. Put the files under components/prescription-scan-to-checkout-flow/, install the listed dependencies with `npx expo install`, and render it on a route I can open. Keep the timing and easing values documented in the source comments. Replace the sample copy and artwork with content from my app, or leave placeholders and list what I still need to supply. === Source files are attached here for paid plans ===
Details
- Platforms
- iOS, Android
- Requires
- Expo SDK 54+
- Access
- Pro
- Updated
- 11 Oct 2026
- License
- Unlimited commercial projects
- Original design
- @askwhykartik on X
Are you the designer? Ask us to change or remove this.
Add pieces from the terminal or let your agent fetch them. Until then, Copy prompt does the same job. Docs
What it does
A pharmacy delivery app flow of nine screens and twelve taps. The home screen enters in sequence, with the header, title, search button, four category pills and product cards each springing in. Adding an item turns its check button teal and updates the cart. The flow then moves to a prescription upload: a camera view looks at a handwritten prescription in perspective, flattens it to a straight sheet, and draws annotation boxes over it. Later steps cover the cart, a delivery map with a street grid, water and parks where the camera zooms and turns to follow a rider along a route, and an order summary. Transitions mix pushes, a circular reveal and fades.
How it's built
A shared timeline function produces the state for each moment, and the React Native component draws it with react-native-svg, with linear gradients for fades and expo-blur for frosted layers. The prescription is laid out in its own paper coordinates and projected onto the measured camera quadrilateral with a four-corner matrix, so annotations flatten with it. The map is procedural SVG and its camera is a 2D affine transform. React Native has no clip path, so the circular reveal is a rounded window with overflow hidden and the content shifted back inside it. A tap-through mode pauses at each tap.
Good for
- Healthcare, pharmacy or delivery apps with upload, cart and tracking steps
- A document capture screen that flattens a skewed page
- A delivery tracking map that follows a moving marker
Dependencies
@expo-google-fonts/dancing-scriptexpo-blurexpo-linear-gradientreact-native-svgreact-native