[React Native] Expo

2021. 1. 5. 14:00React/React Native

1. Expo Cli

1) 설치

npm install expo-cli --global

2) 프로젝트 생성

단, blank 템플릿을 사용해주어야 한다.

expo init rn-first-app

3) Expo Client

구글 플레이스토어 혹은 앱 스토어에서 'Expo Client'를 다운받고, 'npm start'를 통해 expo-cli에서 나온 바코드를 인식한뒤 다운받은 'Expo Client'로 개발한 앱을 확인할 수 있다.

expo-cli

4) Debugging

  • 기본 오류 메시지
  • Expo-Cli
  • console.log
  • 크롬 개발자 모드를 이용한 디버깅 및 브레이크 포인트 사용
  • 시뮬레이터 Toggle Inspector (UI Debugging)
  • React Native Debugger 툴 사용

 

5) Device

Device 정보(메모리 등)는 시뮬레이터에서 Show perf Moniter 옵션을 통해 확인할 수있다.

728x90

'React > React Native' 카테고리의 다른 글

[React Native] TDD  (0) 2021.01.04
[React Native] Dimensions, Device 정보  (0) 2021.01.04
[React Native] Platform  (0) 2021.01.04
[React Native] 재사용 가능한 Component  (0) 2021.01.04