Giter Club home page Giter Club logo

well-check's Introduction

Well Check [Mobile App]

This README describes the steps needed to run the WellCheck mobile app

Pre-requisites

1. System requirements

2. Cloning

The standard way to install this project is to clone the repository and setup the environment

3. Setup

1. Run the following commands in terminal:

cd well-check-mobile

# 1. Install NPM dependencies
$ npm install

# 2. Link react-native dependencies
$ react-native link
$ react-native link react-native-vector-icons
$ react-native link react-native-fs

# 3. Start Android Studio emulator (https://github.com/digitalequation/well-check-mobile)
example: $ /Users/janedoe/Library/Android/sdk/emulator/emulator -avd Nexus_5X_API_23

# 4. Start react native Metro server
$ react-native start --reset-cache

# 5. Compile the assets and install the app on the emulator
### Open another terminal tab and run:
$ react-native run-android
or
$ react-native run-ios

2. Start React Native Debugger

3. Access the 'Metro' server terminal tab and press: 'd'. A dialog will open in the emulator and select 'Debug'. This will connect the app to the React Native Debbuger

Quick references

Paths

  • Compiled code - android and ios

  • Javascript - src

    • Add new React Native Screens/ Pages in src/screens
    • Add new React Native Common Components in components/common
    • Add new API endpoints in src/services
    • Modify axios interceptors in src/Http.js
    • Add new Utils/ reusable common functions in src/Utils.js
    • Add new navigation route in src/navigation using react-navigation
    • Modify react redux in src/redux-store
  • Scaled Sheet Styles - src/assets/styles/

  • Fonts - src/assets/fonts/

  • Images - src/assets/images/

  • Theme - native-base-theme

Main libraries

Utilities
UI

FAQs

  • Q: Icons not rendering properly

  • A: Run: react-native link react-native-vector-icons and restart the environment and the emulator

  • Q: Fonts error on ios

  • A: Open XCode and access: Build Phases/Copy Bundle Resources and remove all font (tff) files

  • Q: App not running

  • A: Run:

    watchman watch-del-all && rm -rf node_modules/ && npm cache verify && npm install
    react-native link
    react-native link react-native-vector-icons
    react-native link react-native-fs
    react-native start --reset-cache
    react-native run-android / react-native run-ios
    sudo pkill -9 node (when xcode build is stuck)
    
  • Q: Multi Dex error on Android

  • A: Add to android/app/build.gradle in the defaultConfig object: multiDexEnabled true

  • Q: Cannot choose between the following variants of project :react-native-camera:

  • A: Add to android/app/build.gradle in the defaultConfig object: missingDimensionStrategy 'react-native-camera', 'general'

well-check's People

Contributors

mymobilesplus avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.