We recommend installing Node, Watchman and JDK using Homebrew. Run the following commands in a Terminal after installing Homebrew:
brew install node
brew install watchman
brew install --cask adoptopenjdk/openjdk/adoptopenjdk8
If you have already installed JDK on your system, make sure it is JDK 8 or newer.
sudo gem install cocoapods
Download and install Android Studio. While on Android Studio installation wizard, make sure the boxes next to all of the following items are checked:
- Android SDK
- Android SDK Platform
- Android Virtual Device
- If you are not already using Hyper-V
Be sure to see more information about installing environment: https://reactnative.dev/docs/environment-setup
To run this application, you first need to clone this repo and then enter into this directory:
git clone <project repo link>
cd options-mobile
Install dependencies
npm install
CocoaPods dependencies are needed for ios development
cd ios && pod install && cd ..
Launch an Android Emulator or iOS Simulator, then
# Android
npm run android
# iOS
npm run ios
-
iOS 11+
-
Android API 21+