正在自动登录…
rit3zh/ expo-glass-carousel
为React Native应用提供液态玻璃效果的轮播组件,卡片在滑动时呈现玻璃弯曲效果,支持触摸交互和无障碍操作。
AI 中文解读 · 根据仓库描述与 README 生成 · 2026/11/3 09:06:20 · 查看原文
- 累计 Stars
- 51
- 当前热度
- 1 天内 · 小火
- 仓库创建时间
选用指南
AI 根据 README 整理 · 2026/11/3 09:06:20
- 使用方式
通过React组件方式使用,将GlassCarousel.Item放入GlassCarousel.Root中,支持自定义背景和覆盖层。
查看 README 依据
The component lives in [`src/components/glass-carousel`](src/components/glass-carousel). The demo invites screen is in [`src/components/ui/invites-screen`](src/components/ui/invites-screen). --- ## 🚀 Usage Put a `GlassCarousel.Item` inside `GlassCarousel.Root` for each card. The carousel snapshots each item's content into a Skia image, then draws the cards through the glass lens shader. ```tsx import { GlassCarousel } from "@/components/glass-carousel"; export function Gallery({ cards }: { cards: { id: string; title: string }[] }) { return (
<GlassCarousel.Root onIndexChange={(index) => console.log(index)}> {cards.map((card) => ( <GlassCarousel.Item key={card.id} label={card.title}> <Card {...card} /> </GlassCarousel.Item> ))} </GlassCarousel.Root> ); } ``` Children that aren't `GlassCarousel.Item` are drawn above the carousel as overlays. This is the place for headers, buttons or a status bar: ```tsx <GlassCarousel.Root background={<Backdrop />}> {items} <Header /> </GlassCarousel.Root> ```
- 部署要求
需要Expo SDK 58、React Native 0.88及配套依赖(Skia、Reanimated等)。
查看 README 依据
[Expo SDK 58](https://expo.dev/changelog) · [React Native 0.88](https://reactnative.dev/) · [React Native Skia](https://shopify.github.io/react-native-skia/) · [Reanimated 4](https://docs.swmansion.com/react-native-reanimated/) · [Worklets](https://docs.swmansion.com/react-native-worklets/) · [Gesture Handler](https://docs.swmansion.com/react-native-gesture-handler/) · [Expo Image](https://docs.expo.dev/versions/latest/sdk/image/) · [@expo/ui](https://docs.expo.dev/versions/latest/sdk/ui/) · [Expo Router](https://docs.expo.dev/router/introduction/) ---
README
正在加载 README…
收录信息
- 仓库创建时间
- 2026/11/2 16:05:13
- 首次达标收录
- 2026/11/3 09:01:27
- 统计更新时间
- 2026/11/3 11:01:54
按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。
模型评估
普通加权总分 3.7 / 5
由 Jev 模型根据仓库描述与 README 评估,2026/11/3 09:01:27 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。
仓库信息
- 最近推送
- 2026/11/2 16:08:05
- 许可证标识
- MIT
- Fork 数
- 6
- 当前状态
- 未归档
收录记录
按创建时长与累计 Stars 首次收录:小火
首次发现项目