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-ui

v0.2.0

Published

UNIF React Native UI Components

Downloads

178

Readme

@unif/react-native-ui

UNIF React Native 基础 UI 组件库 — 提供原子、基础、复合三层组件体系。

安装

npm install @unif/react-native-ui
# 或
yarn add @unif/react-native-ui

使用

import { Button, Input, Avatar, ListItem, tokens } from '@unif/react-native-ui';

<Button title="提交" onPress={handleSubmit} />
<Input placeholder="请输入..." onChangeText={setText} />
<Avatar name="张三" size={40} />

组件列表

布局

| 组件 | 说明 | |------|------| | Row | 水平布局容器 | | Column | 垂直布局容器 | | Center | 居中布局容器 | | Space | 间距组件 |

原子 (Atom)

| 组件 | 说明 | |------|------| | Text | 文本组件 | | Touchable | 触摸反馈容器 | | Divider | 分割线 | | Avatar | 头像 | | WaveAnimation | 波形动画 |

基础 (Base)

| 组件 | 说明 | |------|------| | Button | 按钮 | | Input | 输入框(含 toolbar 插槽) | | Chip | 标签/筹码 | | Popover | 气泡弹出层 | | ActionSheet | 操作面板 |

复合 (Composite)

| 组件 | 说明 | |------|------| | ListItem | 列表项(thumb + title + extra 布局) |

主题

通过 configure() 自定义 token,通过 tokens 访问当前主题值:

import { configure, tokens } from '@unif/react-native-ui';

configure({ colorPrimary: '#1890FF' });

语义样式

每个组件支持 styles prop 进行语义化样式覆盖:

<Button
  title="确定"
  styles={{ root: { borderRadius: 20 }, title: { fontSize: 16 } }}
/>

兼容性

| @unif/react-native-ui | React Native | React | 状态 | |------------------------|-------------|-------|------| | 0.1.x | >= 0.71 | >= 18 | ✅ | | 0.1.x | 0.74.x | 18.x | ✅ 已验证(PECPortal) | | 0.1.x | 0.81.x | 19.x | ✅ 已验证(example app) |

API 兼容说明

  • Pressable: RN >= 0.63 ✅
  • StyleSheet.compose: RN >= 0.66 ✅

Contributing

License

MIT