/updateadd-mobile

RN app on development

Primary LanguageJavaScriptOtherNOASSERTION

Get Started

System Requirements

Installation

On the command prompt run the following commands

yarn

react-native link

Run on iOS

  • Run react-native run-ios or yarn ios in your terminal

Run on Android

  • Run react-native run-android or yarn android in your terminal

Integrate with CodePush

Below steps can be done through App Center's Dashboard

  • Create a new project in Sentry

  • Run react-native link react-native-sentry and follow instructions. Check out documents

  • Go to Project Settings -> Client Keys -> Copy and paste the DNS url to SentryUtil.configure('') in App.js

Support multiple environments

  • Change API_URL string in .env, .env.staging, .env.production

  • Android: problems with Proguard? Check this link out.

Integrate CodeClimate for test report

  • Change <token here> in .circleci/config.yml file with Code Climate's repo token

Support visual regression test on CI

  • Make sure circleci is running with macOS plan

  • Modify .circleci/config.yml by uncommenting the commented lines and removing these:

docker:
    - image: circleci/node:10.10.0

curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > /tmp/cc-test-reporter
  • Run reg-suit init --use-yarn to re-install and re-configure reg-suit and plugins into our project. Check out documents

Writing contacts

Load contacts

  • [DANGER] Method removes information. We have a debug sample of contacts which can be loaded onto the device, through the debug menu. This will clear your contacts and load in our contacts. Only use on test devices