Now In Code
Get access

Hatched Split Bar Stat Card

A card on an indigo-to-lavender gradient shows a large 7 in 10, a 70/30 bar with a 45-degree hatched capsule beside a solid blue one, a legend with percentages and three client avatars. The bar fills from the left, then the rest fades in. SVG, shared core.

Inspired by a design posted on XRebuilt from scratch by Now In Code

Agent prompt

Add the Now In Code component "hatched-split-bar-stat-card" to this project.

The full source is attached at the end of this prompt. Put the files under components/hatched-split-bar-stat-card/, 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, Web
Requires
Expo SDK 54+
Access
Pro
Updated
18 Nov 2026
License
Unlimited commercial projects
Original design
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 dark indigo-to-lilac statistics card for a coaching or interview product. A small title sits above a large "7 in 10" figure and a one-line caption. Under them a two-segment proportion bar splits 70/30, the left segment drawn with diagonal white hatching and the right one solid pale blue. A legend row with colored dots and bold percentages follows, then a hairline divider and a bottom row with three round client avatars and their shares. On mount the bar fills from left to right, the solid segment starting slightly after the hatched one, and the legend, divider and bottom row fade in and rise a few points in sequence.

How it's built

A plain JavaScript core holds the layout, the fitted background and the stripe geometry, and also supplies an intro timeline that returns the state for any time t. The component draws the gradient background, clipped bar segments and stripes with react-native-svg, and text and avatars with ordinary Text and Image views. A requestAnimationFrame loop feeds time into the core, so Reanimated is not used. The hatching is built as explicit stripe paths rather than an SVG pattern. The background is one linear gradient plus two radial washes.

Good for

  • Session or call analytics in a coaching, interview or research app
  • A single headline ratio with a breakdown underneath, such as question types or plan mix
  • Dark dashboard summaries that need a split bar with a legend

Dependencies

react-native-svgexpo-fontreact-native

Tags

Data and AnalyticsAvatarCardChartWork and CollaborationCrossfadeDark ModeData FillEducation and LearningGradientNumeric DisplayProgress BarStaggered Entrance

Related