Skip to content

junedomingo/reactgen-native

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reactgen-native

Generate React Native component

Installation

npm install reactgen-native -g

Usage

reactgen-native <filename> <directory> [option]

Example

reactgen-native AwesomeFile awesome -C

Options:

-P, --presentational  Create inline function component
-C, --container       Create class-based component

Default Path

You can set your default root path by creating .env file in your root directory and add REACTGEN_DEFAULT_ROOT_PATH="your/path"