MAC Settings - Source
- Install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"- Install Ruby
brew install rbenv
rbenv install 2.7.5 # use rbenv v2.7.5
rben global 2.7.5 # set rbenv v2.7.5 as default
rbenv rehash
gem install bundler -v 2.4.22- Install React Native
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
. ~/.nvm/nvm.sh # activate nvm
nvm install 20.16.0 # we use v20.16.0- Install Watchman
brew install watchman- Install React Native CLI
npm install -g react-native-cli
npm install -g react-native-
Install XCode
-
Install Cocoapods
brew install cocoapods/.env,/ios/Info.plistfiles are required
- At root directory
/run
yarn install- Go to
/iosand run
pod install- Come back to root directory
/and run
yarn startBy this, you can start the dev project via Ios simulator
-
First install Android Studio
-
Java 17 is required to run this project via Android simulator
-
To install Java 17, run
brew install openjdk@17- Change the
~/.zshrcfile by running
vim ~/.zshrc- Add the following lines at
~/.zshrc
# Android SDK Settings
export ANDROID_HOME=/your/path/to/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin
# Java Settings
export JAVA_HOME="$(brew --prefix openjdk@17)"
export PATH="JAVA_HOME/bin:$PATH"- Run the following code at bash to apply
source ~/.zshrc- Go to the root directory
/and run
yarn install
yarn startBy this, you can start the dev project via Android simulator