0.0.9-development • Published 6 years ago

react-native-template-parcmg v0.0.9-development

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

React Native + TypeScript

Start a new React Native project with TypeScript, Prettier & TSLint

Usage

When creating a new React Native project, use the command:

react-native init projectname --template parcmg
cd projectname
node setup.js
npm install
react-native link react-native-gesture-handler

That's it! šŸŽ‰ Then, proceed as usual:

  • react-native run-ios

Includes

  • TypeScript
  • Prettier (with commit hook)
  • TSLint
  • Jest
  • Redux
  • Redux-Saga
  • React-Navigation

Requirements

  • npm i -g react-native-cli

Project File Structure

.
ā”œā”€ā”€ LICENSE
ā”œā”€ā”€ README.md
ā”œā”€ā”€ __tests__
│   └── App.tsx
ā”œā”€ā”€ dependencies.json
ā”œā”€ā”€ devDependencies.json
ā”œā”€ā”€ index.js
ā”œā”€ā”€ jest.config.js
ā”œā”€ā”€ package.json
ā”œā”€ā”€ package.template.json
ā”œā”€ā”€ rn-cli.config.js
ā”œā”€ā”€ setup.js
ā”œā”€ā”€ src
│   ā”œā”€ā”€ @types
│   │   └── index.d.ts
│   ā”œā”€ā”€ App.tsx
│   ā”œā”€ā”€ AppContainers.tsx
│   ā”œā”€ā”€ Bootstrap.tsx
│   ā”œā”€ā”€ components
│   │   ā”œā”€ā”€ README.md
│   │   ā”œā”€ā”€ TodoItem.tsx
│   │   └── index.ts
│   ā”œā”€ā”€ containers
│   │   ā”œā”€ā”€ README.md
│   │   └── RootDrawer.tsx
│   ā”œā”€ā”€ graphics
│   │   ā”œā”€ā”€ README.md
│   │   └── icons
│   │       ā”œā”€ā”€ back.png
│   │       ā”œā”€ā”€ home-focused.png
│   │       ā”œā”€ā”€ home.png
│   │       ā”œā”€ā”€ ordered-list-focused.png
│   │       ā”œā”€ā”€ ordered-list.png
│   │       ā”œā”€ā”€ user-focused.png
│   │       └── user.png
│   ā”œā”€ā”€ helpers
│   │   └── README.md
│   ā”œā”€ā”€ reducers
│   │   ā”œā”€ā”€ app.ts
│   │   ā”œā”€ā”€ index.ts
│   │   └── todo.ts
│   ā”œā”€ā”€ sagas
│   │   └── user.ts
│   ā”œā”€ā”€ screens
│   │   ā”œā”€ā”€ Auth
│   │   │   ā”œā”€ā”€ Signin.tsx
│   │   │   └── Signup.tsx
│   │   ā”œā”€ā”€ Detail.tsx
│   │   ā”œā”€ā”€ README.md
│   │   └── RootTabs
│   │       ā”œā”€ā”€ Home.tsx
│   │       ā”œā”€ā”€ Me.tsx
│   │       └── Todo.tsx
│   ā”œā”€ā”€ services
│   │   ā”œā”€ā”€ README.md
│   │   └── UserService.ts
│   ā”œā”€ā”€ store
│   │   └── index.ts
│   ā”œā”€ā”€ types
│   │   └── index.ts
│   ā”œā”€ā”€ ui
│   │   ā”œā”€ā”€ README.md
│   │   ā”œā”€ā”€ TouchableItem.tsx
│   │   └── index.ts
│   └── utilities
│       └── README.md
ā”œā”€ā”€ tsconfig.json
└── tslint.json