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

@unif/react-native-design

v0.20.0

Published

Unif 设计系统:theme + icons + utils + components

Readme

@unif/react-native-design

npm CI License Docs

Unif 设计系统 —— theme(设计令牌)+ 组件 + 图标 + utils,面向 React Native 0.85 新架构(Fabric + TurboModule)。所有 Unif 应用与端能力包的 UI 基座。

特性

  • 运行时主题:useColors() 角色 token 跟随系统 light/dark 自动切换;useThemedStyles + 模块顶层 makeStyles 缓存样式,绝不内联 hex。
  • 40+ 组件:Button、Card、Cell、NavBar、Toast 等原子组件 + AvatarWithRing、GlassStats 等通用复合组件,全部从包根 barrel 导出,无需深路径。
  • a11y 内建:交互组件预设 accessibilityRole;IconButtonaccessibilityLabel 为类型必填。
  • 图标集 + 严格 TS:IconName 闭集类型、<Icon> 自动继承主题色;strict + noUncheckedIndexedAccess,类型随包发布。

安装

yarn add @unif/react-native-design

本库不打包原生依赖,宿主工程需自行安装下列 peer 并完成原生侧配置:

yarn add react-native-svg \
  react-native-gesture-handler \
  react-native-reanimated \
  react-native-worklets \
  react-native-safe-area-context \
  react-native-reanimated-carousel \
  @sbaiahmed1/react-native-blur

iOS 另需在 ios/ 执行 bundle exec pod install。完整步骤见文档站 · 快速开始

快速开始

在 App 根挂一次 ThemeProvider,命令式 host(ToastHost / ConfirmHost)按需添加;makeStyles 必须写在模块顶层:

import {
  ThemeProvider, ToastHost, Button, useThemedStyles, type ColorTokens,
} from '@unif/react-native-design';
import { View } from 'react-native';

// inline 会破坏 useThemedStyles 的样式缓存
const makeStyles = (c: ColorTokens) => ({
  wrap: { padding: 16, backgroundColor: c.surface },
});

function Demo() {
  const styles = useThemedStyles(makeStyles);
  return (
    <View style={styles.wrap}>
      <Button label="保存" onPress={() => {}} />
    </View>
  );
}

export const App = () => (
  <ThemeProvider>
    <Demo />
    <ToastHost />
  </ThemeProvider>
);

文档

  • 文档站(快速开始 · 组件 API · 设计令牌 · 设计原则):https://unif-design.github.io/react-native-design/
  • AI / LLM(纯 Markdown,按需 fetch,别凭记忆猜 API): llms.txt 索引 · llms-full.txt 全文
  • Agent Skill unif-design(覆盖组件 API、token 规则、与原生 RN 的关键差异): /plugin marketplace add unif-design/skills/plugin install unif@unif-skills

兼容性

  • React Native 0.85+(新架构 Fabric + TurboModule;随 RN 0.85 对应 concurrent React)
  • React 19、TypeScript 6
  • Node.js ≥ 24.13(见 .nvmrc)

许可

MIT