Inertial Photo Pill Category Picker
Four staggered rows of photo pills each drag sideways and keep their momentum in an endless loop. Tapping fades a washed-out pill into a selected tint, and a floating arrow turns on after three picks. Shared core for HTML and React Native SVG.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "inertial-photo-pill-category-picker" to this project. The full source is attached at the end of this prompt. Put the files under components/inertial-photo-pill-category-picker/, 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
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 onboarding step titled with an instruction to choose three or more topics. Four horizontal rows of photo pills fill the screen, and the rows are staggered so pills bleed off both edges. Each row drags sideways on its own and keeps coasting after release, wrapping around endlessly with no snapping. Tapping a pill washes it from white to a pale cyan tint with a small press pulse. A round blue button at the lower right stays dimmed until three pills are chosen, then lights up with its glow. Skip and back controls sit in the header.
How it's built
A shared JavaScript core owns the layout, the selection and drag state, the hit testing and the momentum decay, and returns a composed frame. The React Native component draws that frame with Views, Image and react-native-svg for icons, using PanResponder for the sideways drags and a requestAnimationFrame loop that runs only while something is moving. Rows are not FlatList or ScrollView, because each row needs endless wrapping and its own momentum. The photo wash is two stacked white and cyan overlays whose opacity cross-fades.
Good for
- Interest pickers during onboarding for reading, social or content apps
- Any multi-select where imagery helps users choose faster than text chips
- Minimum-selection flows where the continue button unlocks after N choices
Dependencies
react-native-svgreact-native