React-Native expo 시작하기 (새버전)

2024. 11. 15. 23:23·Mobile/React Native

React-Native expo 시작하기 (새버전)

리액트 네이티브를 처음하다 새롭게 프로젝트를 시작하면서 생기는 터미널에서 코드가 있었다.

expo init <프로젝트 명>

다음으로 시작하는 방법은 옛날방법이라는 것이다.

1) 프로젝트 시작하기

npx create-expo-app@latest <프로젝트 명>

다음 명령어를 입력하면 최신판의 react-native로 바로 실행된다.

2) 프로젝트 실행하기

npx expo start

다음 명령어를 치면 바로 프로젝트로 실행된다.

빈 탬플릿으로 시작하기

다음과 같이 프로젝트가 실행되는데 만약에 빈 탬플릿을 원한다면

# 기본 빈 템플릿
npx create-expo-app@latest MyNewApp --template blank

# TypeScript를 사용하는 빈 템플릿
npx create-expo-app@latest MyNewApp --template blank-typescript

다음과 같이 명령어를 시작하면 빈 프로젝트로 시작된다.

반응형

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

React-Native expo에서 FAB 버튼 만들기  (0) 2024.11.28
React-Native 에서 TextInput 사용해보기  (1) 2024.11.17
React-Native 커스텀 폰트 설치하기  (1) 2024.11.14
React Native에서 환경 변수 안전하게 관리방법  (1) 2024.11.13
React-Native 사용팁들 (ios simulator 닫기, Expo 앱에서 Debugger 열기, custom location 설정)  (0) 2024.11.11
'Mobile/React Native' 카테고리의 다른 글
  • React-Native expo에서 FAB 버튼 만들기
  • React-Native 에서 TextInput 사용해보기
  • React-Native 커스텀 폰트 설치하기
  • React Native에서 환경 변수 안전하게 관리방법
WHITE_FROST
WHITE_FROST
개발공부리뷰블로그
  • WHITE_FROST
    하얀하얀IT
    WHITE_FROST
  • 전체
    오늘
    어제
    • 분류 전체보기 (138)
      • Infra (5)
      • Project & Troubleshooting (14)
        • Troubleshooting (7)
        • Dev Tools (4)
      • Frontend (30)
        • Next.js (9)
        • React (13)
        • TypeScript (2)
        • JavaScript (6)
      • Mobile (17)
        • React Native (16)
        • Android (1)
      • Backend & Data (7)
        • Database (3)
        • Java (1)
        • Python (2)
        • Design Pattern (1)
      • AI (7)
        • Models & API (1)
        • AI Notes (6)
        • AI Tools (0)
        • Local AI (0)
        • Concepts (0)
      • Problem Solving (52)
        • Algorithm Notes (6)
        • Algorithm Practice (46)
      • Growth Log (9)
        • Study Log (6)
        • Tips (0)
        • Etc (3)
  • 블로그 메뉴

    • 홈
    • 태그
    • 미디어로그
    • 위치로그
    • 방명록
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    코테
    react
    Ai
    오블완
    Expo
    react-native-maps
    mongodb cloud
    error
    리액트네이티브
    java
    프로그래머스
    reactnative
    ReactHook
    Claude
    티스토리챌린지
    알고리즘
    boj
    Python
    hooks
    코딩테스트
    SWEA
    백준
    Next.js
    React Hooks
    React-Native cli
    javascript
    ios
    D2
    d1
    react-native
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.5
WHITE_FROST
React-Native expo 시작하기 (새버전)
상단으로

티스토리툴바