Photo-Derived Color Field Detail Page
A recipe detail page where the square dish photo fades into a smooth color field sampled from the image, under a serif title, info rows, a translucent ingredient card and a glass tab bar. A Before / After switch cross-fades three phone backgrounds.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "photo-derived-color-field-detail-page" to this project. The full source is attached at the end of this prompt. Put the files under components/photo-derived-color-field-detail-page/, 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
- 23 Nov 2026
- License
- Unlimited commercial projects
- Original design
- @JoaoFranco_03 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 recipe detail screen where the page background takes its color from the dish photo. A photo header fades into a smooth field that shifts color from left to center to right, darkens down the page and lifts again near the bottom. Below sit a serif title, an info row, an introduction, ingredient cards, round glass buttons and a floating glass tab bar whose selected pill slides between tabs with a spring. The page scrolls. The design is shown for three different dishes and in two colorways, one muted and one that carries more of the photo's color, and a toggle cross-fades the background between them.
How it's built
The background field is a stack of three vertical linear gradients, left, center and right, with the left and right ones masked horizontally by linear gradients, so it needs no blur or image. The color stops are measured data stored in a module, one set per dish and colorway. react-native-svg draws the gradients and icon paths, expo-blur provides the glass of the buttons and tab bar, and React Native's Animated drives the tab pill and the cross-fade. The title uses the iOS system serif, so no font file is bundled for it.
Good for
- A recipe, product or media detail page that should feel tied to its hero image
- Any editorial layout where a themed background color comes from the content
- A floating glass tab bar with a sliding selection pill
Dependencies
expo-blurreact-native-svgreact-native