Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

generator-rn-cv

cdvntr4MIT0.0.1

Scaffolding in use at codeventure for React Native Projects

yeoman-generator, scaffolding, react-native

readme

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.
  2. 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.
  3. Where do you want it?
    • Here you can select the directory you want your component in
  4. 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