弧形拨盘金额选择与安全检查
点金额卡展开弧形刻度盘,拖动时大数字逐位滚动并更新余额。随后检查面板逐词显影文字、逐项打勾共五项,五个绿点飞向头像,进入 Safe to send 状态。
灵感来自 @builtbysasha 在 X 上发布的设计由 Now In Code 从零重建
import { Piece } from "./components";
export function Example() {
const progress = useSharedValue(0);
…
export function Example() {
const progress = useSharedValue(0);
…
Agent 提示词
Add the Now In Code component "arc-dial-amount-picker-with-security" to this project. The full source is attached at the end of this prompt. Put the files under components/arc-dial-amount-picker-with-security/, 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 作品。提示词包含完整源码。开始使用
详情
- 平台
- iOS、Android
- 依赖
- Expo SDK 54+
- 权限
- Pro
- 更新于
- 2026 年 11 月 24 日
- 许可证
- 无限商业项目
- 原始设计
- @builtbysasha(X)
你是设计者吗? 请求我们修改或下架此作品.
CLI 与 MCP 服务器 即将推出
在终端添加作品,或让智能体自行获取。在此之前,用“复制提示词”也能做到。 文档
功能说明
一个加密货币风格的转账页面,包含余额条、金额卡片和一排最近收款人。点按卡片会展开为弧形刻度盘。拖动刻度盘会改变大号金额,数字逐位滚动;下方是四舍五入到五美元的美元读数,以及剩余余额的一行文字。松手后卡片收起,显示“Review”按钮。点按后弹出一个面板,其中的文字从模糊的灰色逐词变清晰为白色,每条说明后出现一个绿色对勾,同时计数器从一数到五。五个对勾随后变成绿点,飞向收款人头像,并组成五段式圆环。面板会显示金额、手续费条和“Safe to send”状态。
实现方式
一个 JavaScript 核心把整个页面表示为时间的函数,React Native 组件则把其输出映射为 react-native-svg 元素和普通 View。刻度盘是一个大圆,刻度沿弧线旋转排列,每五个刻度更长,并带有沿切线方向旋转的标签。数字按字符逐位垂直滚动,审核文字则按单词用透明度和模糊的分段变化显示。时间通过 requestAnimationFrame 循环推进,使用弹簧和缓动曲线。网页预览中提供演示回放和交互模式。
适用场景
- 在最终安全确认后才发送的付款或转账流程
- 使用刻度盘而非数字键盘输入金额
- 以明确的安全或不安全结果结束的分步验证流程
依赖
react-native-svgreact-native标签
模糊过渡底部弹层深色金融钱包数字滚动数字滑杆弹簧状态切换文字动画