- Node.js >= 6.5.0
- NPM >= 3.10.0
- React Native CLI >= 2.0.1
- Android SDK = 6.0 (Marshmallow)
-
First install all react native dependencies. Follow these steps here.
-
Clone the repository from https://github.com/leapfrogtechnology/boilerplate-reactnative:
$ git clone git@github.com:leapfrogtechnology/boilerplate-reactnative.git -
Navigate to the directory
cd boilerplate-reactnativeand install all dependencies listed in package.json using npm:$ npm install
-
For Development:
If you want to run your app in device, first you need to setup your device.
Start react native development server:
$ react-native startInstall android app in emulator / phone:
$ react-native run-android -
For Production: Follow these steps for generating signed apk for android app.
ESLint is being used for style checking. It is recommended to run the linter before committing anything:
$ npm run lint
Fix common linter issues using:
$ npm run lint:fix
Copyright © 2017 Leapfrog Technology