rncli
Convenient CLI for React Native apps
Install
$ npm install -g @torigetz/rncli
How to use
First install preset (rncli-expo-ts for example)
$ npm install -g rncli-expo-ts
Create file rncli.config.js in yourt RN app root
module.exports = {
preset: 'rncli-expo-ts' // insert the installed preset here
}
Also you can use custom config
$ rncli --config ./custom-config.js
You can create component
$ rncli generate component button
# or
$ rncli g c button
# or create container
$ rncli g container app
All templates:
$ rncli g help
Or get help
$ rncli --help
Debug mode
$ export RNCLI_DEBUG=true
$ rncli g c textfield # output with debug logs...