Task Checklist with 3D Coin Reward Spin
Checking a daily task draws a checkmark and strikes through its title while a small coin pops from the row and flies to a larger 3D coin, which spins on each hit. Three.js on web, expo-gl on React Native.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "task-checklist-with-3d-coin-reward" to this project. The full source is attached at the end of this prompt. Put the files under components/task-checklist-with-3d-coin-reward/, 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
- 2 Nov 2026
- License
- Unlimited commercial projects
- Original design
- @heysatya_ 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 missions screen with three tasks, each with a rounded checkbox and a small icon, separated by dashed lines. Completing a task lights its check in orange and drops a thick, gold, embossed coin into a vault area above the list. The coin spins on impact, comes to rest with a lit rim, and small coins and sparkles fly toward a balance counter that ticks up. Tapping a task row switches the demo into live interaction. The scene is rendered as a 3D coin with lighting and bloom, over a flat interface with a page indicator at the bottom.
How it's built
The coin is a three.js mesh drawn through expo-gl: an extruded superellipse outline with a keyhole cut, a bevel on the rim, a custom shader material and an analytic softbox lighting model in place of an environment map. Bloom is a hand-written eight-bit pipeline: half-resolution capture, bright-pass, two separable blur passes and a screen blend. Spin is integrated at fixed substeps so the state depends only on the impact time. The flat interface is react-native-svg and system text, and expo-asset loads the engraving textures.
Good for
- Rewards, missions and loyalty screens where a physical item drops in
- A balance or points counter that reacts to completed tasks
- A reference for running three.js inside React Native with expo-gl
Dependencies
expo-assetexpo-glreact-native-svgthreereact-native