1.0.34 • Published 4 years ago

@codepso/rn-rad v1.0.34

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

rn-rad

CLI for React Native, boilerplates and generators. Rapid Application Development (RAD) model for React Native.

npm Package downloads per month JavaScript Style Guide

Table of content

Requirements

You need the following requirements:

  • node 10+
  • npm & npx

Installation

npm install -g @codepso/rn-rad
npm update -g @codepso/rn-rad

Commands

Initializers (i)
rn-rad i packages [redux=true]
rn-rad i structure [redux=true]
rn-rad i project [resources=true]

Generators (g)
rn-rad g component [name] [path]
rn-rad g screen [name] [path]
rn-rad g form [name] [path] [screen=true]

About
rn-rad help
rn-rad version

command: i packages options

install the most used packages and pod's (ios)

  • --redux (-r) Flag to indicate if a redux packages will be added, default: true
  • --lang (-l) Flag to indicate if languages packages will be added, default: true
rn-rad i packages
rn-rad i packages --redux false
rn-rad i packages -r false

rn-rad i packages --lang false
rn-rad i packages -l false
Icons

ios/AwesomeProject/info.plist

<key>UIAppFonts</key>
<array>
  <string>MaterialCommunityIcons.ttf</string>
  <string>MaterialIcons.ttf</string>
</array>

android/app/build.gradle

project.ext.vectoricons = [
    iconFontNames: ['MaterialIcons.ttf', 'MaterialCommunityIcons.ttf']
]

apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"

command: i structure options

Create the directory structure

  • --redux (-r) Flag to indicate if redux directory will be added, default: true
  • --lang (-l) Flag to indicate if i18n directory will be added, default: true
rn-rad i structure
rn-rad i structure --redux false
rn-rad i structure -r false

rn-rad i structure --lang false
rn-rad i structure -l false

command: i project options

Add a theme, styles, images and helpers to RN project, rn-rad.config.js will be created Note: i structure (it's required)

  • --resources (-r) Flag to indicate if the resources will be added, default: true
rn-rad i project
rn-rad i project --resource false
rn-rad i project -r false

command: g theme name

Create a new theme (styles, colors)

  • name: theme name (use kebab-case)
rn-rad g theme
rn-rad g theme codepso

command: g screen name

Create a screen

  • name: Screen name (use UpperCamelCase)
  • --path (-p): Flag to indicate the path where it will be created, default: src/screens
rn-rad g screen
rn-rad g screen Welcome
rn-rad g screen Welcome --path src/screens/home
rn-rad g screen Welcome -p src/screens/home

command: g component name

Create a component

  • name: Component name (use UpperCamelCase)
  • --path (-p) Flag to indicate the path where it will be created, default: src/components
rn-rad g component
rn-rad g component Footer
rn-rad g component Footer --path src/ui
rn-rad g component Footer -p src/ui

command: g form name

Create a form Require: yup, formik.

  • name: Form name (use UpperCamelCase)
  • --path (-p) Flag to indicate the path where it will be created, default: src/forms
  • --view (-v) Flag to indicate if the view will be created, default: true
rn-rad g form
rn-rad g form User

rn-rad g form User --path src/forms/user
rn-rad g form User -p src/forms/user

rn-rad g form User --view false
rn-rad g form User -v false

rn-rad g form User -p src/forms/user -v false

Packages

  • React Native 0.6.1+
  • React Navigation 5+
  • React Native Paper 3.10+/4
  • Vector Icons 6
  • Redux
  • Yup
  • Formik
  • React Native Localize
  • i18n js
  • React Native Helper

License

The React RAD is licensed under the terms of the GPL Open Source license and is available for free.

1.0.33

4 years ago

1.0.32

4 years ago

1.0.34

4 years ago

1.0.31

4 years ago

1.0.30

5 years ago

1.0.29

5 years ago

1.0.28

5 years ago

1.0.27

5 years ago

1.0.26

5 years ago

1.0.25

5 years ago

1.0.24

5 years ago

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.9

5 years ago

1.0.10

5 years ago

1.0.8

5 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago