安全提示条与币种选择
弹层关闭后,白色胶囊提示条从状态栏下落并轻微过冲回落。收款页以叠放的圆形国旗和公链图标列出账户,长币种列表底部的胶囊搜索栏可过滤。
灵感来自 @0xDani 在 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 "security-toast-currency-picker" to this project. The full source is attached at the end of this prompt. Put the files under components/security-toast-currency-picker/, 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年10月23日
- 许可证
- 无限商业项目
- 原始设计
- @0xDani(X)
你是设计者吗? 请求我们修改或下架此作品.
CLI 与 MCP 服务器 即将推出
在终端添加作品,或让智能体自行获取。在此之前,用“复制提示词”也能做到。 文档
功能说明
一款金钱应用的三个独立深色界面。安全设置页有一张包含开关的设置卡片,翻转其中一个开关会播放一个确认提示条:它带着轻微过冲从顶部落下,同时一层暗色遮罩淡出,提示条的顶边在状态栏下方淡出。收款页列出银行账户和钱包地址,每行都有叠放的旗帜和网络图标。货币页是一个很长的旗帜行列表,滚动到底部,底部有一个搜索胶囊,输入时会过滤列表。
实现方式
共享 JavaScript 核心保存尺寸、颜色、数据以及提示条的时间线,React Native 组件用 View 渲染,图标和旗帜使用 react-native-svg,边缘淡出使用 expo-linear-gradient,滚动使用 ScrollView,过滤使用 TextInput。提示条由两段缓动线段构成,而不是弹簧,由 requestAnimationFrame 循环驱动,因此不需要手势或动画库。系统图标是手写的 SVG 路径。没有遮罩视图,淡出是跟随暗色层的渐变覆盖层。
适用场景
- 使用提示条反馈开关状态的设置页
- 带有固定搜索栏的货币或国家选择器
- 钱包或银行应用中的账户和收款地址列表
依赖
react-native-svgexpo-linear-gradientreact-native标签
头像卡片交叉淡化深色金融钱包首页图标列表极简形变通知搜索栏弹簧状态切换开关