Pinch-to-Summarize Browser Interactions
A double-space in the address bar starts in-site search, a two-finger pinch warps the page inward and springs it into a thumbnail card that streams a summary, and menus, bookmarks, a spaces sidebar and a font page follow. Sites are fictional.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "pinch-to-summarize-browser-interactions" to this project. The full source is attached at the end of this prompt. Put the files under components/pinch-to-summarize-browser-interactions/, 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
- 18 Nov 2026
- License
- Unlimited commercial projects
- Original design
- @__maximos 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 mobile browser prototype that walks through six features. In-site search turns the address bar into a pill tinted with the site's colour, with suggestions that open a page. Pinching a page squeezes it into horizontal bands that collapse into a summary panel where text streams in. The three-dot menu expands into submenus, and saving shows a bookmarks sheet with spaces and folders and then a toast at the top. Swiping right reveals a sidebar of spaces that tint the interface red or green. A site-settings menu changes the page typeface. A scripted demo plays the whole sequence, and a live mode lets the user type, tap, pinch and swipe through the same paths.
How it's built
One shared JavaScript core holds the state machine, actions and demo timeline, while separate modules produce display lists for the browser chrome and for two invented web pages. Nodes are rectangles, blurred glass, baseline-positioned text, icons, images, paths and clipped transform groups. The React Native component renders them with views, expo-blur for the glass, expo-linear-gradient and react-native-svg, and loads fonts with expo-font. Opacity is passed down only to leaf nodes so blur effects are not lost. Gesture sections replay stored traces, and the end of each gesture uses a closed-form spring. A mock keyboard can be switched off in favour of the system one.
Good for
- A browser, reader or notes app with an AI summary step triggered by a gesture
- Prototyping multi-screen navigation with menus, sheets and a sidebar from one state machine
- Pages that need per-site accent colours to drive search and toolbar tint
Dependencies
expo-blurexpo-fontexpo-linear-gradientreact-native-svgreact-native