npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ruban-labs/react-native-progress

v6.0.0

Published

Progress indicators and spinners for React Native. Zero dependencies, bare-RN first, new architecture ready. Refurbished from oblador/react-native-progress.

Readme

@ruban-labs/react-native-progress

React Native 进度指示器与加载动画组件库。

  • 零运行时依赖——只依赖裸 React Native 本体。不需要 react-native-svg、ART 或任何平台套件。
  • 裸 RN 优先——在全新的 @react-native-community/cli 工程里开箱即用,零配置。
  • 新架构就绪——纯 JS 组件,无原生模块,无 codegen。
  • TypeScript 严格模式——全量类型化 props,默认值合理。

本库翻新自 Joel Arvidsson 的经典 react-native-progress(MIT), 为现代 React Native 时代重写。来源追溯见 NOTICE

以尺量生态,以工具造生态。 —— Ruban Labs

安装

npm install @ruban-labs/react-native-progress
# 或
pnpm add @ruban-labs/react-native-progress

要求 react-native >= 0.66react >= 17。见版本支持

组件速览

Bar 进度条

import { Bar } from '@ruban-labs/react-native-progress';

<Bar progress={0.6} />
<Bar indeterminate color="#34c759" />

Circle 进度环

分段式进度环,见渲染说明

import { Circle } from '@ruban-labs/react-native-progress';

<Circle progress={0.7} showsText size={80} thickness={6} />
<Circle indeterminate color="#ff9500" />

Pie 扇形进度

import { Pie } from '@ruban-labs/react-native-progress';

<Pie progress={0.45} size={64} unfilledColor="#f0f0f0" />

CircleSnail 蜗牛加载

不确定态加载器:旋转环 + 伸缩彗尾。

import { CircleSnail } from '@ruban-labs/react-native-progress';

<CircleSnail color={['#ff3b30', '#ff9500', '#34c759']} />

属性文档

完整属性表见 英文 README,两个版本保持同步。

版本支持

支持下限为 react-native >= 0.66 / react >= 17。组件是纯 JavaScript, 在旧架构和新架构上行为完全一致——支持庞大的存量项目不花任何代价。 这个区间正好覆盖生态的几次关键分界:

| RN 版本 | 分界 | | --- | --- | | 0.68 | 新架构首次可选(Fabric / TurboModules) | | 0.70 | Hermes 成为默认引擎 | | 0.71 | TypeScript 成为默认模板 | | 0.76 | 新架构成为默认 | | 0.79 | React 19 |

发布产物使用保守语法(无可选链、无空值合并),保证在不转换 node_modules 的老 Metro/JSC 环境里也能解析;类型定义兼容 @types/react 17+。

渲染说明

原版库用 react-native-svg 绘制 CirclePieCircleSnail。本翻新版为了保持零依赖:

  • Pie 用裁剪 + 旋转半圆盘实现——几何上完全精确,动画完整,透明背景保留。
  • CircleCircleSnail 渲染为分段环(离散的圆头段)。用 segmentCount 调节密度。这是刻意的品牌宪法决策:不引入 SVG 依赖、保留透明中心,代价是不再是 原版的平滑圆弧观感。

react-native-progress 迁移

- import * as Progress from 'react-native-progress';
+ import { Bar, Circle, Pie, CircleSnail } from '@ruban-labs/react-native-progress';
  • 上文文档化的 prop 面保持兼容。
  • 不再需要 react-native-svg——没有其他地方用的话可以移除。
  • Circle 渲染从平滑 SVG 圆弧变为分段环。
  • 本包从 6.0.0 起步;原版止于 5.x

开发

pnpm install
pnpm typecheck   # 严格 TS
pnpm test        # jest + @testing-library/react-native
pnpm build       # react-native-builder-bob(commonjs、module、typescript)

许可证

MIT——见 LICENSENOTICE