Journal Prompt Scroll Carousel
Swipe through numbered prompt cards; the centered card grows in height while its question and body fade in, and side cards shrink back to just their number. A small shared physics core handles drag, snapping and page dots, rendered with react-native-svg.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "journal-prompt-scroll-carousel" to this project. The full source is attached at the end of this prompt. Put the files under components/journal-prompt-scroll-carousel/, 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
- 24 Nov 2026
- License
- Unlimited commercial projects
- Original design
- @mobbin 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 gray journaling screen with a round back button, a two-line heading that mixes a serif and a bold sans, and a horizontal carousel of white rounded prompt cards. The centered card is taller than its neighbors and shows a large serif number, a bold question and a gray paragraph. The side cards show only their numbers. Seven pagination dots sit below, then a black pill button and a floating white tab bar with five items. Dragging the carousel snaps to the nearest card. A fast flick moves one card, and the ends resist with a rubber-band effect. The card that leaves fades out while the arriving card expands its text into place.
How it's built
A shared core file holds the measurements and the motion model. Card height shrinks with distance from center while width stays fixed, and snapping follows a critically damped spring, which has no overshoot. A requestAnimationFrame loop advances the model and PanResponder reads the drag and release velocity. Cards, text, dots and the tab bar are ordinary views, with react-native-svg for icons. The serif face is the system serif, so no extra fonts are bundled.
Good for
- Daily prompts, quotes or tips in a journaling or wellness app
- A pick-one-of-several chooser where the focused card reveals more detail
- Weekly themes or lesson selectors with a clear single call to action
Dependencies
react-native-svgreact-native