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 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-smart

v1.1.11

Published

## 简介 一套纯JS实现的ReactNative快速开发组件库,无需任何原生工程代码,即可达到Android/iOS双平台一致的UI效果。 ### 使用 `yarn add react-smart` 或 `npm install react-smart --save` ## 特性 - 路由 - Actions - Router - Scene - 浮动层 - Toast 轻提示 - Spin 页面加载 - SpinProgress 页面进度加载 - Dialog

Downloads

7

Readme

React-Smart

简介

一套纯JS实现的ReactNative快速开发组件库,无需任何原生工程代码,即可达到Android/iOS双平台一致的UI效果。

使用

yarn add react-smart

npm install react-smart --save

特性

  • 路由
    • Actions
    • Router
    • Scene
  • 浮动层
    • Toast 轻提示
    • Spin 页面加载
    • SpinProgress 页面进度加载
    • Dialog 对话框
    • ActionSheet 弹出选择
    • Popup
  • ui组件
    • TopBar 标题栏
    • ProgressCircle 圆形加载
    • GridView 可拖拽网格布局
    • Button 按钮
    • CheckBox 复选框
    • Switch 开关
    • TouchableView 点击组件
    • LockPattern 手势解锁
    • RowGroup
    • ActivityIndicator 活动指示器
    • NumberInput 计数组件
    • Slider 滑块
    • PopTip 气泡提示
  • 动态主题
    • Theme
  • 其他
    • Http

效果预览

Theme

Theme

Toast 轻提示

Toast

Spin/SpinProgress 页面加载

SpinProgress

Dialog 对话框

Dialog

ActionSheet 弹出选择

ActionSheet

TopBar 标题栏

TopBar

ProgressCircle 圆形加载

ProgressCircle

GridView 可拖拽网格布局

GridView

CheckBox 复选框

CheckBox

Switch 开关

Switch

TouchableView 点击组件

TouchableView

LockPattern 手势解锁

LockPattern

ActivityIndicator 活动指示器

ActivityIndicator

NumberInput 计数组件

NumberInput

Slider 滑块

Slider

PopTip 气泡提示

PopTip

Android工程调整

TopBar组件在Android中有沉浸(默认)和染色两种状态栏模式,在Android4.4以后版本才能正常使用沉浸样式,若要兼容4.4及更更低版本,请设置TopBar模式为染色模式,或在中MainActivity中复写createReactActivityDelegate方法

    @Override
    protected ReactActivityDelegate createReactActivityDelegate() {
        return new ReactActivityDelegate(this, getMainComponentName()) {
            @Nullable
            @Override
            protected Bundle getLaunchOptions() {
                Bundle bundle = new Bundle();
                bundle.putInt("Android_SDK_INT", Build.VERSION.SDK_INT);
                return bundle;
            }
        };
    }