Simulator에서 실행하기
1) yarn install
- 프로젝트에 필요한 모듈 설치
- git clone 등으로 프로젝트를 받아온 경우에 필요
$ yarn install or $ npm install
2) npx pod-install
- ios 환경 auto linking 수행
- git clone 등으로 프로젝트를 받아온 경우에 필요
- 새로운 모듈을 설치한 경우에 필요
$ cd <프로젝트 루트 경로> $ npx pod-install
3) 실행하기
- ios simulator로 프로젝트 구동
$ cd <프로젝트 루트 경로> $ npx react-native run-ios
위 명령어는 default로 simulator로 앱을 열도록 되어 있으므로, 잠시 후 시뮬레이터에서 앱이 열린다.
물론 Xcode로 프로젝열어서 빌드해도 됨.
