Install JDK 8 Java SE Development Kit 8 8u202 or 8u201
Install JRE 8 Java SE Runtime Environment Version 8 build 1.8.0_202 or 1.8.0_201
Verify Installation with commands:
javac -version
java -version
Enable Command Line Tools
-
Xcode->Preferences->Locations->Command Line Tools (drop down menu)
-
Verify Installation with command (returns folder if it’s installed, returns 2 if not installed)
xcode-select -p
- Choose “Custom” Setup when prompted, Check the following
Android SDK
Android SDK Platform
Performance (Intel ® HAXM)
Android Virtual Device
If on startup menu, Configure->SDK (bottom right) If in project Preferences -> Appearance & Behavior → System Settings → Android SDK
- Select Android 8.1 (Oreo), then “Show Package Details” in bottom right corner, (add these two)
Android SDK Platform 27
Google APIs Intel x86 Atom System Image
Go to tab “SDK Tools” and “Show Package Details” again
27.0.3
Apply & Install
Open/Create /.bash_profile (Add following variables -> then save with “source” command)
touch ~/.bash_profile; open ~/.bash_profile
#Node Requirement
export PATH=$PATH:/usr/local/git/bin:/usr/local/bin
#React Native
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
Update Changes
source $HOME/.bash_profile
source ~/.bash_profile
Verify Changes and Close/Reopen Terminal
echo $PATH
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Verify that there are no errors, check top of output after running the command DO NOT CONTINUE IF THERE ARE ERRORS (Lookup error, fix before continuing)
brew install node
Verify that there are no errors, check top of output after entering install command DO NOT CONTINUE IF THERE ARE ERRORS (Fix before continuing) NOTE: If node is already installed then you may have trouble “linking” with brew command
brew install watchman
npm install -g react-native-cli
NOTE: React Native Docs mentions if error “Cannot find module 'npmlog’” try command
curl -0 -L https://npmjs.org/install.sh | sudo sh
OTHER ERRORS suggest node did not install properly
Change directory to FieldNotebook (cd [directory])
npm install
- Before Enabling Remote JS Debugging
- Open Chrome, open Developer Tools (CMD+Option+i)
- Go to URL: http://localhost:8081/debugger-ui/
If failure to connect or continuously trying to connect and failing
- Stop JS Debugging CMD+M
- Reload URL
- Re-enable JS Debugging CMD+M
- Stop app Metro Builder CTRL+C
- Re-run app with below command
react-native run-android
react-native run-ios
Use the same commands as above
To reload you must remotely open the configuration menu with the command:
adb shell input keyevent 82
From https://code.visualstudio.com/
alternatively you can use Atom from https://atom.io/
From https://chocolatey.org/install
Paste the install instructions into command prompt or other powershell
- Choose “Custom” Setup when prompted, Check the following
Android SDK
Android SDK Platform
Performance (Intel ® HAXM)
Android Virtual Device
If on startup menu, Configure->SDK (bottom right) If in project Preferences -> Appearance & Behavior → System Settings → Android SDK
- Select Android 8.1 (Oreo), then “Show Package Details” in bottom right corner, (add these two)
Android SDK Platform 27
Google APIs Intel x86 Atom System Image
Go to tab “SDK Tools” and “Show Package Details” again
27.0.3
Apply & Install
Go to Control Panel -> Systems and Security -> System -> Change Settings -> Advanced -> Enviroment Variables
Click add
Set Name to ANDROID_HOME
Set path to the path to your sdk
If you dont know, go to yor sdk manager in Android Studio and it should tell you at the top
While here, make sure your JAVA_HOME path is set to your jdk\bin file location and do the same for the PATH Variable
Verify Changes and Close/Reopen Terminal
echo $PATH
Into command prompt, paste,
choco install nodejs.install
npm install -g react-native-cli
NOTE: React Native Docs mentions if error “Cannot find module 'npmlog’” try command
curl -0 -L https://npmjs.org/install.sh | sudo sh
OTHER ERRORS suggest node did not install properly
Change directory to FieldNotebook (cd [directory])
npm install
- Before Enabling Remote JS Debugging
- Open Chrome, open Developer Tools (CMD+Option+i)
- Go to URL: http://localhost:8081/debugger-ui/
If failure to connect or continuously trying to connect and failing
- Stop JS Debugging CMD+M
- Reload URL
- Re-enable JS Debugging CMD+M
- Stop app Metro Builder CTRL+C
- Re-run app with below command
react-native run-android
react-native run-ios