1
Fork 0
Simple template for react-native projects
This repository has been archived on 2026-05-20. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • JavaScript 52.4%
  • Objective-C 36.1%
  • Java 11.5%
Find a file
2017-01-21 13:37:11 +00:00
android Remove BUCK config 2017-01-20 23:27:16 +00:00
ios init react-native 2017-01-20 20:34:15 +00:00
scripts Add tests 2017-01-20 23:18:48 +00:00
src Fix lint 2017-01-21 12:29:48 +00:00
.babelrc init react-native 2017-01-20 20:34:15 +00:00
.eslintrc Add lint 2017-01-20 22:51:33 +00:00
.gitignore Add coverage 2017-01-20 23:22:47 +00:00
.nycrc Add coverage 2017-01-20 23:22:47 +00:00
circle.yml Added circleci config file 2017-01-20 23:25:27 +00:00
index.android.js Move application into src 2017-01-20 20:51:47 +00:00
index.ios.js Move application into src 2017-01-20 20:51:47 +00:00
package.json run coverage on test 2017-01-21 12:31:19 +00:00
README.md add readme 2017-01-21 13:37:11 +00:00

React-Native Template

CircleCI branch

A template of how I think a React-Native project should be laid out.

Contains:

  • Navigation: react-native.Navigator
  • Test Framework: mocha & chai
  • React-Native helpers: react-native-mock
  • Renderer: enzyme
  • Linting: eslint
  • Coverage: nyc

Running the project

Requires react-native-cli installed

  1. Clone the project
  2. Install dependencies with npm install
  3. Start the dev server with npm start
  4. Run with react-native run-android

Run tests

Unittests: npm run mocha

Unittests with coverage: npm run coverage

Linter: npm run lint