Huddle is a medical document organizing and sharing mobile application built using React Native.
I am certainly missing some because I did not set this project up from a clean install (nor did I take comprehensive notes) but here are key software requirements:
I believe all team members are using MacOs computers.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
The React Native docs recommend using homebrew, but I do not. Use a Node version manger like nvm or n. This will allow you to not lose your ability to develop on legacy apps, and should make the project easier to update to current Node.js versions in the future.
I suggest we use Node.js version 12
Instead of npm the team prefers yarn. Install with homebrew or if you'd rather, npm i -g yarn
worked for me.
A good place to start is here: https://facebook.github.io/react-native/docs/getting-started.html but please install Node using a version manager.
I am on these versions:
react-native-cli: 2.0.1
react-native: 0.60.6
sudo gem install cocoapods
- Clone this repository
- run
yarn install
- Install iOS dependencies
yarn pod:install
- Run
react-native run-ios
oryarn android:run
- Ensure .env.production have secrets
- Build
- Smoke test in Android phone (or Simulator)
- Bump version /package.json and /android/app/build.gradle (Android versioning)
yarn android:release
PROD build and Sentry sourcemap- Locate generated APK in huddle/app/build/outputs/apk/app-release.apk
- Xcode GUI like normal
yarn ios:release
Sentry sourcemap
You can use reactotron for debug network requests
and console.log
also will log to reactotron and browser console.
You need to:
- Install reactotron desktop app.
- Run reactotron desktop app.
- Run app in emulator in dev environment.
Check docs for more details.
- (Tab 1) Run
yarn start-detox
- (Tab 2) Run
yarn detox:build && yarn detox
The Huddle team will be using the airbnb React/JSX style guide https://github.com/airbnb/javascript/tree/master/react and the airbnb JavaScript style guide https://github.com/airbnb/javascript.