1.0.9 • Published 4 years ago
react-native-generate-components v1.0.9
Generate Component for react-native
Features
- Generate class component or function component for react-native
- Support TypeScript + JavaScript
Installation
Install from npm
npm install -g plop
npm install -D react-native-generator-cli
Install from yarn
yarn global add plop
yarn add -D react-native-generator-cli
Usage
1. Copy script
"scripts": {
...,
"generate": "cd node_modules/react-native-generator-cli && generate && cd ../../"
},
to package.json
2.In cmd
or terminal
run
generate