Expo 프로젝트 시작하기 (Windows 10)
Introduction to Expo - Expo Documentation
Introduction to Expo Expo is a framework and a platform for universal React applications. It is a set of tools and services built around React Native and native platforms that help you develop, build, deploy, and quickly iterate on iOS, Android, and web ap
docs.expo.io
위 페이지에 상세한 내용이 담겨 있다.
Expo를 활용하여 React Native 를 사용하기 위해서는 expo-cli 를 설치해 주어야한다.
우선 콘솔을 열고 아래 커맨드를 입력한다.
npm install --global expo-cli
실행이 되지 않는다면 npm 이 설치가 되어있지 않은것이다.
npm은 nodejs 를 설치할 때 같이 딸려오는데 이는
Node.js
Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
nodejs.org
위 사이트에 접속하면 설치할 수 있다.
nodejs를 설치후 expo-cli 까지 설치하였다면
프로젝트를 생성한 폴더로 이동한다.
(ex. cd documents)
다음으로
expo init my-project
를 입력하면
(필자는 my-project를 진행 중인 프로젝트 명인 Amore로 하였다.)
blank로 시작한다. (Enter)
Enter를 누르면 이와같이 대기하게 되고
완료되면
이런 화면을 보여준다. Expo 프로젝트 폴더가 생성되었다. 여기서
cd my-project
npm start
를 실행하면 웹에서 Expo Developer Tool을 실행시켜 테스트할 수 있게 해준다.
'JavaScript > React Native' 카테고리의 다른 글
[React Native] Change Package(Android) & Bundle Id(iOS) (0) | 2020.11.24 |
---|---|
[React Native] 시작하기 (Windows 10) (0) | 2020.11.19 |
[React Native] Child Navigator 에서 Parent Navigator 의 Header Title 바꾸는법 (feat. stackoverflow) (0) | 2020.10.04 |
[React Native & Expo] Google Login 구글로그인 (0) | 2020.09.29 |
[React Native & Expo & Firebase] Google Login_React Navigation Basic (0) | 2020.09.28 |
댓글