개발공부 임고미

ReacNative Setup 본문

카테고리 없음

ReacNative Setup

임고미 2022. 7. 25. 11:12
728x90
300x250

# Update brew

> brew update

 

# Install Java {version}

> brew tap adoptopenjdk/openjdk

> brew install --cask adoptopenjdk11

   brew install --cask adoptopenjdk{java-version-you-like}

> java --version

 

# Install cocoapods

>  brew install cocoapods

 

# Add paths

```Text

export ANDROID_HOME=$HOME/Library/Android/sdk 
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

 

export JAVA_HOME=

export PATH=$PATH:$JAVA_HOME/bin

```

# How to set up react native project

> react-native init {ProjectName}

> react-native init {ProjectName} --template typescript

 

# Run IOS

> react-native run-ios

 

# Run Android

> react-native run-android

> echo "sdk.dir=/Users/$(whoami)/Library/Android/sdk" > local.properties

728x90
300x250
Comments