Tick Ring Amount Dial with Hold-to-Confirm
One drag around a ring of 72 ticks covers the full balance in 0.01 steps; ticks near the pointer bulge with speed and the last digit leaves faded trails. Holding the button fills it over one second, then labels switch to confirmed text.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "tick-ring-amount-dial-with-holdtoconfirm" to this project. The full source is attached at the end of this prompt. Put the files under components/tick-ring-amount-dial-with-holdtoconfirm/, 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
- @rakshaa_t 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 staking screen with a large round dial. A ring of seventy-two ticks surrounds a soft disc, and an orange needle sweeps around it as you drag. Ticks the needle has passed go dark, and ticks near the needle bulge outward. A full turn covers the whole available balance, in steps of one hundredth. While dragging, the dollar estimate, the daily reward and the amount row dim, then swap to the new values with a small vertical slide when you let go. A segmented control sets the unlock period. Pressing and holding the main button fills it, and on completion the label changes and the orange turns black. Releasing early rolls the fill back, and a zero amount cannot be staked.
How it's built
A shared JavaScript core holds the tick geometry, the drag keyframes and the timelines. The React Native component draws the dial with react-native-svg and reads touch input from the React Native responder system. A requestAnimationFrame loop drives the hold fill, the value swaps and the tick bulge. The tick bulge is a displacement of each tick's radius by its angular distance to the needle, so no shader is involved. The segmented control, the locked state after completion and the hold rollback were added beyond what the source video showed.
Good for
- Entering an amount, percentage or quantity as a rotary gesture
- Finance or crypto flows with a deliberate hold-to-confirm step
- Settings that pick a value from a bounded range, such as a limit or a target
Dependencies
react-native-svgreact-native