React Native Boilerplate is a starting point for React Native application.
- Redux
- React Navigation (with drawer)
- Jest
- NativeBase (UI Kit)
- CircleCI
- Eslint (Airbnb config)
- Node v6.10 (it is recommended to install it via NVM)
- Yarn
- A development machine set up for React Native by following these instructions
- Clone this repo,
git clone git@github.com:novom/react-native-boilerplate.git <your project name> - Go to project's root directory,
cd <your project name> - Remove
.gitfolder,rm -rf .git - Open
package.jsonand change thenameproperty with your project name - Run
yarnto install dependencies - Run
react-native upgradeto update the project name toandroidandiosbuild
- Type
yto each prompt
- Run
rm -rf android/app/src/main/java/com/reactnativeboilerplate - Run
rm -rf ios/ReactNativeBoilerplate - Run
react-native link - Open
src/app/App.jsand replace'ReactNativeBoilerplate'by your project name - Copy
settings/development.sample.jsontosettings/development.jsonand adapt its contents to your needs - Open
environment.jsonand set the desired execution environment - Start the packager with
yarn start - Connect a mobile device to your development machine
- Run the test application:
- On Android:
- Run
react-native run-android
- Run
- On iOS:
- Open
ios/VillageQuebecoisAntan.xcodeprojin Xcode - Hit
Runafter selecting the desired device
- Open
- Have fun!
- Linter:
yarn lint - Unit tests:
yarn test - Unit tests (watch mode):
yarn test:watch - Code coverage:
yarn test:coverage
Never commit directly on master, instead use branches and pull requests.
You must use the following Style Guides :
This project contains a linting config, you should setup eslint into your IDE with .eslintrc.js.