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

🚀 React Native Boilerplate is a starting point for React Native application.

Notifications You must be signed in to change notification settings

novom/react-native-boilerplate

Repository files navigation

React Native Boilerplate

React Native React Navigation NativeBase

CircleCI

React Native Boilerplate is a starting point for React Native application.

Features

Prerequisites

Getting Started

  1. Clone this repo, git clone [email protected]:novom/react-native-boilerplate.git <your project name>
  2. Go to project's root directory, cd <your project name>
  3. Remove .git folder, rm -rf .git
  4. Open package.json and change the name property with your project name
  5. Run yarn to install dependencies
  6. Run react-native upgrade to update the project name to android and ios build
  • Type y to each prompt
  1. Run rm -rf android/app/src/main/java/com/reactnativeboilerplate
  2. Run rm -rf ios/ReactNativeBoilerplate
  3. Run react-native link
  4. Open src/app/App.js and replace 'ReactNativeBoilerplate' by your project name
  5. Copy settings/development.sample.json to settings/development.json and adapt its contents to your needs
  6. Open environment.json and set the desired execution environment
  7. Start the packager with yarn start
  8. Connect a mobile device to your development machine
  9. Run the test application:
  • On Android:
    • Run react-native run-android
  • On iOS:
    • Open ios/VillageQuebecoisAntan.xcodeproj in Xcode
    • Hit Run after selecting the desired device
  1. Have fun!

How To

Run Tests

  • Linter: yarn lint
  • Unit tests: yarn test
  • Unit tests (watch mode): yarn test:watch
  • Code coverage: yarn test:coverage

Contributing

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.

About

🚀 React Native Boilerplate is a starting point for React Native application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published