Food Scan Camera Onboarding
A corner-bracket scan frame sits over a meal photo; switching between food, barcode, label and library modes morphs the frame, while a bottom panel steps through four short tips with a Next button. Shared layout and timeline for HTML and React Native.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "food-scan-camera-onboarding" to this project. The full source is attached at the end of this prompt. Put the files under components/food-scan-camera-onboarding/, 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
- 20 Nov 2026
- License
- Unlimited commercial projects
- Original design
- @crevioagency 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 light-mode first-run screen that explains how to scan a meal. A sushi photo fills the camera area, framed by four rounded corner brackets and a grid of dots with the corners left out. A row of pills below picks a mode, namely scan food, barcode, food label and library, and choosing one animates the scan box to a new shape, wide for barcodes and tall for labels. A light sweep passes over the frame periodically. A heading and three icon rows explain the step. Next moves through four steps with a changing title and rows, the last button reads Start Scanning, and a Skip control jumps to the final step. Pills and buttons press down briefly when tapped.
How it's built
Layout, copy, the four modes with their box sizes, the four steps and every timing constant live in one shared JavaScript file used by the web preview and the component. The component draws brackets, dots, icons and the sweep mask with react-native-svg, uses expo-blur for the frosted pill and button areas, and loads three Manrope weights through an Expo font package. Box changes interpolate between rectangles with an ease-in-out curve over under half a second. A requestAnimationFrame loop supplies time, and props allow skipping the intro or freezing a moment.
Good for
- A camera permission or how-to screen before a scanner in a food, nutrition or inventory app
- A mode picker that morphs a viewfinder frame
- A multi-step tips carousel with a skip action
Dependencies
react-native-svgexpo-blur@expo-google-fonts/manropereact-native