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

rnux

v0.0.13

Published

React Nitive UX

Readme

RNUX

React Native UX

安装

  1. 依赖库 react-native-reanimated
  2. 依赖库 react-native-modal
  3. 字体 @react-native-vector-icons/icomoon
  4. 本体 rnux
npm install react-native-reanimated // 有额外配置
npm install react-native-modal
npm install @react-native-vector-icons/icomoon
npm install rnux

添加字体说明

# ios/YourApp/Info.plist
<key>UIAppFonts</key>
<array>
<string>MicasIcon.ttf</string>
</array>

全局样式

字体大小

  • h1: 20
  • h2: 18
  • h3: 16
  • h4: 14
  • h5: 12
  • h6: 10

字体粗细

  • light: 300
  • regular: 400
  • medium: 500
  • semiBold: 600
  • bold: 700

颜色

  • white: '#FFFFFF',
  • black: '#000000',
  • primaryLight: '#E7CDBB',
  • primary: '#9E6733',
  • errorLight: '#D63D39',
  • error: '#ED4432',
  • warningLight: '#F5BF55',
  • warning: '#FF8742',
  • successLight: '#6FCABA',
  • success: '#35AD1B',
  • gray900: '#111111',
  • gray800: '#333333',
  • gray600: '#666666',
  • gray400: '#999999',
  • gray300: '#CECECE',
  • gray200: '#E7E7E7',
  • gray100: '#F7F7F7',
  • gray50: '#FAFAFA',

Text 文本组件

| 属性 | 描述 | 值 | 类型 | 默认值 | |---------------|-----------|----------------------------------------------------------------------------|--------|---------| | size | 字体大小 | h1 / h2 / h3 / h4 / h5 / h6 | 字符串 | h5 | | color | 字体颜色 | 颜色key | 字符串 | black | | weight | 字体粗细 | light / regular / medium / semiBold / bold | 字符串 | regular | | align | 对齐方式 | left / center / right | 字符串 | left | | lineHeight | 行高 | 12 / '1.2' / '+4' (数组=倍数, 字符串=固定值 +字符串=1倍+偏移量) | 字符串/数字 | 1.2倍 | | decoration | 下换线 / 删除线 | unset / underline / strikeThrough 默认有1px下边距,为对齐1px下换线, 不需要请使用 unset | 字符串 | 无 | | isTruncated | 超出省略 | true / false | 布尔值 | false | | numberOfLines | 最大行数 | | 整数 | 无 |

theme.text 中可自定义 size

ActivityIndicator 加载状态

| 属性 | 描述 | 值 | 类型 | 默认值 | |----------|------|------------------------|-----|----------| | size | 大小 | small / medium / large | 字符串 | 'medium' | | color | 圈圈颜色 | 颜色key | 字符串 | black | | duration | 一圈时间 | 800 | 整数 | 800 |

theme.activity 中可自定义 size 与 borderWidth

Loading 加载组件

继承自 ActivityIndicator封装, 支持ActivityIndicator 组件所有属性

| 属性 | 描述 | 值 | 类型 | 默认值 | |--------------|---------------------|--------------|-----|-------| | cover | 撑满父容器 | true / false | 布尔值 | false | | fullscreen | 全屏 | true / false | 布尔值 | false | | modalVisible | 模态框可见兼容模态框关闭动画 | true / false | 布尔值 | true |