Skip to content
This repository has been archived by the owner on Oct 15, 2019. It is now read-only.

chitezh/react-native-boilerplate

Repository files navigation

React Native Boilerplate

React Native Boilerplate - Redux, React Native Router Flux, Jest, ESLint

Shots

Comming soon!

Included

Installation

Install and setup react-native Getting Started to install requirement tools.

$ npm install -g react-native-cli
$ npm install

Clone boilerplate

$ git clone git@github.com:chitezh/react-native-boilerplate.git
$ cd react-native-boilerplate
$ npm install

Development

Start local server

$ react-native start

Run

$ react-native run-android

or

$ react-native run-ios

DevTools

Remote Redux DevTools

Test (Jest and Eslint)

$ npm test

This will run the script below, linting using ESLint and then, test using Jest

  "scripts": {
    ...
    "lint": "eslint . --ext .js,.jsx",
    "pretest": "npm run lint --silent",
    "test": "jest"
  },

LICENSE

MIT