skjutsgruppen-reactnative icon indicating copy to clipboard operation
skjutsgruppen-reactnative copied to clipboard

React native app for Skjutsgruppen http://www.skjutsgruppen.nu/

Prerequisites

  1. react-native
$ npm install -g react-native-cli
  1. For Android
  • Download Android SDK from here https://developer.android.com/studio/index.html#command-tools

Install

$ git clone [email protected]:Skjutsgruppen/skjutsgruppen-reactnative.git
$ cd skjutsgruppen
$ yarn install
$ cp .env.example .env .env.production

Update .env config according to your need.

For Android

List all avds

$ cd /path/to/Android/Sdk/tools
$ ./emulator --list-avds

Run app on android emulator

$ ./emulator -avd <ADV_NANE>
$ yarn start
$ yarn android

Upgrade React Native version

Install react-native-git-upgrade package globally

$ npm install -g react-native-git-upgrade
$ react-native-git-upgrade

Style Guide

This project uses Airbnb JavaScript Style Guide So please read and be familiar with their style guide before contributing on this project.

Lint javscript code

Run eslint before you commit changes.

yarn eslint