0.0.9-development ā€¢ Published 5 years ago

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

Weekly downloads
1
License
MIT
Repository
github
Last release
5 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