Now In Code
Get access

Camera Capture to Text Highlight

Tapping the composer lifts the keyboard on a critically damped spring, an attachment menu opens, and a black droplet grows into a viewfinder. After a shutter flash, dragging over the page highlights words in green and a quote panel springs up.

Inspired by a design by @krispuckett on XRebuilt from scratch by Now In Code

Agent prompt

Add the Now In Code component "camera-capture-to-text-highlight" to this project.

The full source is attached at the end of this prompt. Put the files under components/camera-capture-to-text-highlight/, 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 ===
Pro piece. The prompt includes the full source.Get access

Details

Platforms
iOS, Android
Requires
Expo SDK 54+
Access
Pro
Updated
23 Oct 2026
License
Unlimited commercial projects
Original design
@krispuckett on X

Are you the designer? Ask us to change or remove this.

CLI and MCP server Coming soon

Add pieces from the terminal or let your agent fetch them. Until then, Copy prompt does the same job. Docs

What it does

A book-quote capture flow in a dark chat app. Tapping the composer expands it from a pill into a taller card and raises the keyboard. Tapping the plus button lowers the keyboard, turns the plus into a cross and floats an attachment menu up with a blur-to-sharp reveal. Choosing the quote option makes a small droplet fall from the top cutout of the screen and grow into a camera viewfinder. The page of a book starts out wide and blurred, zooms in and comes into focus. Pressing the shutter flashes the frame white and freezes the photo, and the controls morph into a glass card. Dragging across the frozen page highlights it word by word, the card grows and a button offers to use the passage, which slides up a quote panel.

How it's built

A shared JavaScript core stores only event times and computes a display list of boxes, text, icons, images and groups for the current instant, plus the hit areas. Its pointer function is the single entry point for input. The React Native component renders the list with plain views, expo-blur for the glass surfaces and expo-linear-gradient for the top bar, with a hidden TextInput to raise the real keyboard. The viewfinder is not a live camera: two pre-rendered images of a book page, one sharp and one soft, are cross-faded to mimic focus. Word highlighting uses stored word bounding boxes and touch tracking, not text recognition. Text is line-broken in the core so lines wrap identically everywhere.

Good for

  • A reading or note-taking app that captures passages from printed pages
  • Any chat composer that expands, opens attachments and hands off to a full-screen camera step
  • A demo of how a scan-then-select flow should feel before native text recognition is wired in

Dependencies

expo-blurexpo-linear-gradientreact-native

Tags

AI AssistantButtonCamera ViewfinderCardChat UICrossfadeDark ModeDragDynamic IslandEducation and LearningExpand and CollapseFluid MotionGradientKeyboardLiquid GlassMenuMorphingReading and ContentScreen TransitionSocialSpring PhysicsState TransitionText Input

Related