
โ iOS ์ธํ
1. brew install node
2. brew install watchman
3. ์ฑ ์คํ ์ด์์ Xcode ์ค์น
4. Xcode settings -> locations์์ command line tools ์ ํ
5. brew install cocoapods
โ Android ์ธํ
1. brew install node
2. brew install watchman
3. brew install --cask zulu@17
4. code ~/.zshrc ๋ก ํ์ผ ์ด๊ณ ๋งจ ๋ฐ์
export JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home ์ถ๊ฐ
5. ์๋๋ก์ด๋ ์คํ๋์ค Mac (64๋นํธ, ARM) ์ค์น (์ค์นํ ๋ ์ค์ ์ standard๋ก)
6. ์ค์น๊ฐ ๋ค ๋๋ฉด More Actions ๋๋ฌ์ SDK Manager์ ๋ค์ด๊ฐ๋ค.
7. Show Package Details์ ๋๋ฅด๊ณ Android 15 (VanillaIceCream)์ Android SDK Platform 35, Google APIs ARM 64 v8a System Image ์ ํ ํ apply
8. SDK Tools ๋ฉ๋ด๋ก ๊ฐ์ Show Package Details์ ๋๋ฅด๊ณ Android SDK Build-Tools๋ฅผ 36.0.0 ์ด์์ผ๋ก ์ฒดํฌ, Android SDK Command-line Tools (latest) ์ฒดํฌ ํ apply
9. ๋ค์ code ~/.zshrc ๋ก ํ์ผ ์ด๊ณ
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/platform-tools
๋งจ ๋ฐ์ ๋ฃ์ด์ค๋ค.
10. source ~/.zshrc ๋ช
๋ น์ด๋ก ์ ์ฉ
11. java -version, echo $JAVA_HOME, adb version, echo $ANDROID_HOME ๊ฐ์ ๋ช
๋ น์ด๋ค ์ ๋์ค๋ฉด ์๋ฃ.
https://reactnative.dev/docs/set-up-your-environment
Set Up Your Environment · React Native
In this guide, you'll learn how to set up your environment, so that you can run your project with Android Studio and Xcode. This will allow you to develop with Android emulators and iOS simulators, build your app locally, and more.
reactnative.dev
โ ํ ์คํธ ํ๋ก์ ํธ ์์ฑ
ํ๋ก์ ํธ ์์ฑ
npx @react-native-community/cli@latest init AwesomeProject
Android ์คํ
npx react-native run-android
iOS ์คํ
npx react-native run-ios
Metro ์๋ฒ ์คํ
npm run start
(React Native ์ฑ์ ์๋ฐ์คํฌ๋ฆฝํธ ์ฝ๋๋ฅผ ์ค์๊ฐ์ผ๋ก ์ ๋ฌํด์ฃผ๋ ๊ฐ๋ฐ์ฉ ์๋ฒ)
โ Boilerplate
1. Ignite
React Native ์ฑ์ ์์ฑํด์ฃผ๋ CLI
https://github.com/infinitered/ignite
GitHub - infinitered/ignite: Infinite Red's battle-tested React Native project boilerplate, along with a CLI, component/model ge
Infinite Red's battle-tested React Native project boilerplate, along with a CLI, component/model generators, and more! 9 years of continuous development and counting. - infinitered/ignite
github.com
2. Create React Native App(Deprecated)
deprecated๋จ
๋์ Expo๋ฅผ ์ฌ์ฉํ๋ค. Expo๋ ์ด์ native ํ์ผ์ ์ ๊ทผ์ด ๊ฐ๋ฅํ๋ค.
(expo eject ํน์ expo prebuild์ ์ ๊ทผ ๊ฐ๋ฅ)
3. Create Expo App
npx create-expo-app@latest
https://reactnative.dev/docs/environment-setup
Get Started with React Native · React Native
React Native allows developers who know React to create native apps. At the same time, native developers can use React Native to gain parity between native platforms by writing common features once.
reactnative.dev
ํ๋ก์ ํธ ์คํ
ios:
npm run ios
expo start --ios
android:
npm run android
expo start --android
Native ์ฝ๋ ์์ ํ ๋
npx expo prebuild
npx expo run:ios'๐ธ React Native' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
| React Native - React Navigation (0) | 2026.01.21 |
|---|---|
| React Native - 26.01.20 ๊ธฐ์ค ์ต์ Components, API (0) | 2026.01.20 |
| React Native - ๋ฐฐํฌํ๊ธฐ (0) | 2026.01.19 |
| React Native - React Native์๋ง ์๋ CSS ์์ฑ (0) | 2026.01.19 |
| React Native - ๊ธฐ๋ณธ Layout, API (0) | 2026.01.13 |