每周动态支付引导页
支付 App 引导页:柔和色带渐变、胶片颗粒、线条 logo、带指示点的分页标题文案和箭头按钮。背景用色标与高斯色团程序化生成,由 React Native Skia 和 SVG 绘制。
灵感来自 @qclay_design 在 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 "weekly-update-payment-onboarding" to this project. The full source is attached at the end of this prompt. Put the files under components/weekly-update-payment-onboarding/, 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月20日
- 许可证
- 无限商业项目
- 原始设计
- @qclay_design(X)
你是设计者吗? 请求我们修改或下架此作品.
CLI 与 MCP 服务器 即将推出
在终端添加作品,或让智能体自行获取。在此之前,用“复制提示词”也能做到。 文档
功能说明
一个深色的五页支付应用引导流程。顶部有小型标志和字标,一行小号大写标签,一个三行标题,其中一个短语被高亮,还有五个分页圆点。底部是一条长长的胶囊形轨道,里面有一个白色圆形旋钮,上面是箭头,以及 START 标签和一组三个 V 形箭头,旁边是一个圆形的返回按钮。将旋钮拖到右端或点按它,即可进入下一页,文案随之变化。返回按钮回到上一页。背后是带有胶片颗粒感的柔和彩色光背景。
实现方式
共享核心保存布局、全部五页文案、用于滑块拖动和翻页的交互控制器,并将背景作为着色器主体,同时封装成 GLSL 和 SkSL 两种形式。组件用 Skia 运行时效果绘制背景,并通过 react-native-svg 和普通视图绘制标志、文字、轨道和箭头。PanResponder 跟随旋钮,requestAnimationFrame 循环驱动高亮时间线。拖到轨道约 80% 处的阈值决定拖动是否完成。文字按基线放置,Inter 字重通过 expo-font 加载。
适用场景
- 金融科技、电子钱包或银行应用的滑动开始式引导
- 兼具页面导航功能的滑动确认控件
- 带有程序化浅色背景的深色首次运行界面
依赖
@shopify/react-native-skiareact-native-svgexpo-fontreact-native标签
深色拖拽金融钱包渐变数字滚动数字引导页转场滑杆