0.0.1 • Published 8 years ago

generator-rn-cv v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

generator-rn-cv

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