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 [email protected]:novom/react-native-boilerplate.git <your project name>
- Go to project's root directory,
cd <your project name>
- Remove
.git
folder,rm -rf .git
- Open
package.json
and change thename
property with your project name - Run
yarn
to install dependencies - Run
react-native upgrade
to update the project name toandroid
andios
build
- Type
y
to 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.js
and replace'ReactNativeBoilerplate'
by your project name - Copy
settings/development.sample.json
tosettings/development.json
and adapt its contents to your needs - Open
environment.json
and 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.xcodeproj
in Xcode - Hit
Run
after 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
.