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-native-component-cli

v2.0.1

Published

scaffold a react native component within seconds

Downloads

34

Readme

react-native-component-cli

Travis (.org) branch

Why?

Many repositories of react native component are not well structured and missing basic parts in CI / CD workflow including development setup, testing, lint... react-native-component-cli helps to instantly scaffold a react-native-component project with following features:

  1. Dev locally - Easy local dev with minimum dependencies
  2. Test - Fully test your component with Enzyme
  3. Lint - Lint source code with ready-to-go rules
  4. Stock - No unofficial 3rd Party Lib involved / Stock React Native Dev Experience

Install

by npx (Preferred)

If you are using an NPM version before 5.2.0, install npx with the following cmd

$ npm install npx -g

by npm install

$ npm install react-native-component-cli -g
$ npm install expo-cli -g

Usage

1. Create

by npx (Preferred)

$ npx react-native-component-cli create

by npm install

$ rnc create

render1562903344619

2. Install

$ cd path-to-your-react-native-component
$ npm install

3. Run Test

$ npm test

4. Start Dev / View Demo

$ npm start

Output

react-native-example-component
├── demo                // contains an Expo project for dev
│   ├── App.js          // the main file for develop the Expo project
│   ├── AppEntry.js     // the entry point for the Expo project
│   ├── app.json        // the Expo project config
│   └── metro.config.js // the metro bundler config
├── src                 // contains source file(s) for the component
│   └── index.js
├── test                // contains test file(s) for the component
│   └── index.test.js 
├── .eslintrc.js        // the eslint config for the component
├── babel.config.js     // the babel config for the test & Expo environments
├── setup-tests.js      // the jest-setup file for Enzyme
├── README.md           // README for the component
├── .gitignore          // git ignore for the component
└── package.json        // pacakge.json for the component

Roadmap

  • [x] Upgrade to Expo SDK 33.0 ( React Native 0.59.8 & React 16.8.3 )
  • [x] Upgrade to Expo SDK 35.0 ( React Native 0.59.8 & React 16.8.6 )
  • [x] Upgrade to Expo SDK 36.0 ( React Native 0.61.4 & React 16.9.0 )

License

MIT