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

runnercamp-shop

v0.0.5

Published

Downloads

3

Readme

开始

文档

React Native (官方) React Native (汉化 v0.31) 项目文档

开发环境

IDE 推荐用 Atom + Nuclide(facebook提供的 atom 插件)

apm install nuclide

入坑指南

  • 所有的宽度、高度、字体等数值,都需要用 $px(100) 的方式

    const styles = StyleSheet.create({
        bigbutton: {
            height: $px(40)             // 宽度
        },
        bigbuttonText: {
            marginLeft: $px(24) ,       // <<-- margin
            fontSize: $px(11) ,         // <<-- 字体
        }
    })

    以及 JSX 中:

    <View style={{width: $px(100)}}> ... </View>
  • ListView 外面要套一层 View, 否则无法靠 width 指定一个固定宽度

    <ListView style={{width:100}} />

    改为:

    <View style={{width:100}}>
        <ListView />
    </View>

Android

  • Genymotion 安装好以后,需要给 ADB 设置 Android SDK 的路径,否则 Genymotion 自带的 SDK 和编译用的版本不一致,无法运行。

  • 由于当前的renact-native 的字体大小会跟随系统的设置变化而变化,因为这个原因导致我们界面会因此发生一些排版问题,再此就把react-native 版本号为0.37.0 修改了RCTFont.mm文件中的缩放比例,路径改成了我自己的 以后大家直接 npm install。