Install React Native
Linux (Ubuntu)
We need nodejs and JDK (and some other packages)apt update && apt install -y curl gnupg
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
curl -sL https://deb.nodesource.com/setup_8.x | bash -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
apt update && apt install -y git nodejs openjdk-11-jdk dbus-x11 chromium-browser build-essential
echo "prefix=${HOME}/.npm-packages" >> ~/.npmrc
PATH="${HOME}/.npm-packages/bin:$PATH"
npm i -g yarn
yarn global add typescript react-native-cli
At the time this was written openjdk was at version 11, so do this:
JAVA_HOME "/usr/lib/jvm/java-11-openjdk-amd64"
MacOS
Install Xcode from https://developer.apple.com/download/more
Open Xcode and go to Preferences->Locations and select the command lie tools.
Install brew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install node (and npm)
brew install node
npm -v
node -v
or from here https://nodejs.org/download/release/
Install jdk from oracle.com
Install yarn, typescript and react-cli
brew install yarn
brew install carthage
yarn global add typescript react-native-cli
Install node (and npm)
brew install node
npm -v
node -v
or from here https://nodejs.org/download/release/
Install jdk from oracle.com
Install yarn, typescript and react-cli
brew install yarn
brew install carthage
yarn global add typescript react-native-cli
Comments
Post a Comment