MarshallBear1 GitHub avatar

react-native-system-thumbnails

MarshallBear1

一个 React Native 库,通过单一 API 生成本地文件的系统级缩略图,必要时回退到文件图标。

Stars

114

7 天增长

暂无数据

Fork 数

7

开放 Issue

0

开源协议

MIT

最近更新

2026-07-24

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

使用 iOS 的 Quick Look 和 Android 的原生解码器,提供统一的跨平台缩略图 API,内置缓存、类型化错误和 AbortSignal 支持,避免了整合多个库的麻烦。

适合谁使用

  • React Native 开发者
  • 需要文件预览的应用构建者
  • 维护文档查看器或媒体应用的团队
  • 迁移到 React Native 新架构的开发者

典型使用场景

  • 在文件选择器和附件列表中显示缩略图
  • 使用单一组件预览混合文件类型(图片、PDF、视频、办公文档)
  • 为不可识别的格式生成确定性的文件图标
  • 在列表视图中缓存缩略图以提升性能

项目优势

  • 为所有本地文件类型提供单一类型化 API
  • 通过 Quick Look 和 Android 内容 API 实现原生性能
  • 支持源感知的本地缓存及缓存清理功能
  • 通过 AbortSignal 取消操作并提供稳定的错误代码

使用前须知

  • 需要 React Native 0.86+ 及新架构
  • 不支持远程 URL(需先下载)
  • 仅通过 GitHub Packages 分发,需配置身份验证令牌

README 快速开始

Usage

项目描述

Native iOS and Android system thumbnails for React Native, with caching, cancellation, and icon fallbacks.

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

makecindy
精选
makecindy GitHub avatar

cindy

Cindy is an open-source AI agent that runs locally on your machine, integrates multiple AI harnesses and models, and provides memory, skills, and automation to perform real work in your projects and apps.

AI 与机器学习大语言模型
958
ammarahm-ed
ammarahm-ed GitHub avatar

react-native-workers

React Native Workers provides real, separate-thread Hermes runtimes for React Native with a Web Worker–style API, structured cloning, native module access, shared memory, and typed RPC.

TypeScript
80
ParthJadhav
ParthJadhav GitHub avatar

noop

NOOP is an offline, account-free companion app that pairs directly with WHOOP 4.0/5.0 straps via Bluetooth, stores all biometric data locally in SQLite, and computes recovery, strain, HRV, and sleep on-device using transparent, documented algorithms.

Swift
75