0.1.9 • Published 5 years ago

react-native-component v0.1.9

Weekly downloads
4
License
MIT
Repository
-
Last release
5 years ago

react-native-component

GitHub issues GitHub version MIT license

Generate skeletons for react native components

Note: this package assumes you use components with the following structure:

.
├── ComponentName
     ├── index.js
     ├── styles.js  

Installation

yarn global add react-native-component
or
npm install -g react-native-component

Usage

To create a component in the current directory

react-native-component -n <ComponentName>

To create a component in a specified path

react-native-component -n <ComponentName> -p <CustomPath>

To specify that the component should be stateless

react-native-component -n <ComponentName> -s

Example

  1. Creating a Login component

react-native-component -n Login

  1. Creating a stateless Button component in a specific path

react-native-component -n Button -p components/Common

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.2

6 years ago