Streak Milestone with Spinning 3D Badge
A hexagonal badge rises from the bottom while spinning, settles face-forward, and an inner glow lights the screen edges as light streaks fly outward. Built from an extruded shape in a shared core, rendered with HTML and React Native SVG.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "streak-milestone-with-spinning-3d-badge" to this project. The full source is attached at the end of this prompt. Put the files under components/streak-milestone-with-spinning-3d-badge/, 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
- 3 Nov 2026
- License
- Unlimited commercial projects
- Original design
- @BreejeAnadkat 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 dark reward screen for a daily streak milestone. A hexagonal enamel flame badge flies up from below the screen, spinning twice as it rises and shrinking into place. An amber glow creeps up both screen edges from the bottom and then breathes. Short streaks of light fly outward from behind the badge. A date, a 10-day streak title and a line of explanation fade in, and a white share button floats up from beneath. Once settled, the badge turns through one full revolution every six seconds, showing a visible thickness and a silver rim at the edges.
How it's built
A shared timeline core drives the badge's position, rotation and scale with separate cubic-bezier curves, and the React Native component draws everything with react-native-svg and expo-linear-gradient on a requestAnimationFrame loop. There is no 3D engine. The badge is a flat face squashed horizontally as it turns, with a gray side strip added for thickness, and the back uses the same artwork unmirrored. The edge glow is vertical gradients with a rising front, and the glow's amber, orange and red-orange tones differ between top, sides and bottom.
Good for
- Streak, habit or achievement milestones in fitness and learning apps
- A reward moment in a game or loyalty program
- A reference for a pseudo-3D rotating badge without a 3D library
Dependencies
react-native-svgreact-native