npm.io
0.0.1 • Published 10 years ago

generator-rn-cv

Licence
MIT
Version
0.0.1
Deps
3
Vulns
0
Weekly
0
Stars
5

generator-rn-cv npm version

An opinionated React Native generator

Installation

First, install Yeoman and generator-react-native-module using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-rn-cv

Usage

Create a new project
yo rn-cv
Create a component
yo rn-cv:component
  1. What kind of component do you want?
  • Component This choice lets you create a regular component only which will be accessible to its parent and working directory.
  • Shared Component This choice creates a shared component which will be reachable throughout all your components.
  1. Will it be a main component or subcomponent?
  • Main Component This will create a container component that will have its own subcomponents and its own directory.
  • Subcomponent This will create a subcomponent that can be used by its parent.
  1. Where do you want it?
  • Here you can select the directory you want your component in
  1. What will be the name of your component?
  • Input the name of the component. This will turn the format you used to PascalCase. (e.g: 'home view' -> 'HomeView')
Create a service
yo rn-cv:service
  1. What will be the name of your service?
  • Input the name of the service. This will turn the format you used to camelCase. (e.g: 'user service' -> 'userService')

License

MIT codeventure

Keywords