회사에서 열심히 밀고 있는 Mendix의 Native Mobile 빌드를 위해 react-native를 알아봐야 될것 같아서
설치를 진행해보도록 했다.
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
* 환경설정
( macOS - iOS )
brew install node ( 18이상 필요! 난 23.1.0 -> 20.17 로 변경! )
brew install watchman
xcode 설치 ( 난 16.1 )
xcode command line tools 설치
brew install cocoapods
(macOS - aOS )
brew install --cask zulu@17 ( jdk17을 꼭 설치해야 되더라.. 리엑트 네이티브 현재 버전이 그러하다함 )
android studio 설치 ( 2024.2.1 레이디버그 ) - 아래 사항 설치
Android SDK
Android SDK Platform
Android Virtual Device
Android 14
Android Home 설정
* 신규 프로젝트 생성
npx @react-native-community/cli@latest init AwesomeProject
오류발생!
Error: EMFILE: too many open files, watch
검색 해보니 watchman 설치하라고만 나오는데 나는 이미 설치한 상태였었다 ㅡㅜ
고생고생 끝에 node 버전을 낮추었더니 해결! -> 20.17.0