JadeCode

웹사이트를 앱으로? 웹뷰! 본문

개발/프로젝트

웹사이트를 앱으로? 웹뷰!

z-zero 2023. 5. 18. 12:00

https://mealti-38fed.web.app/

 

MEALTI

밀티로 오늘의 식사를 기록해보세요 식비 가계부 보러가기 → 뭐 먹을지 고민 된다면? 레시피 추천 받으러 가기 →

mealti-38fed.web.app

파이어베이스로 호스팅 한 내 웹 사이트 밀티!

반응형으로 구현하였기 때문에 모바일 상에서도 잘 열린다.

하지만 왠지 모르게 어플로 된다면 좋겠다... 라는 생각이 들던 와중

웹뷰로 해서 폰에 다운 받으면 어떨까 라는 생각에 웹뷰에 대해서 알아보게 되었다.

 

React Native로 만들기!

expo를 사용하면 쉽게 만들 수 있다.

npm install -g expo-cli

npx create-expo-app 앱이름

npm install -g eas-cli // eas 서비스 이용

Expo 회원가입 하기

https://expo.dev/signup 

 

Sign Up — Expo

Create an account for Expo here.

expo.dev

 

eas(Expo Application Services)를 이용하면 쉽게 빌드 할 수 있다.

가장 쉬운 방법은 eas.json을 수정해서 build를 하는 것이다.

https://docs.expo.dev/build-reference/apk/

 

Build APKs for Android Emulators and devices

Learn how to configure and install an .apk for Android Emulators and devices when using EAS Build.

docs.expo.dev

//eas.json
{
  "cli": {
    "version": ">= 3.13.0"
  },
  "build": {
    "preview": {
      "android": {
        "buildType": "apk"
      }
    },
    "preview2": {
      "android": {
        "gradleCommand": ":app:assembleRelease"
      }
    },
    "preview3": {
      "developmentClient": true
    },
    "production": {}
  },
  "submit": {
    "production": {}
  }
}

아래의 명령어를 치면 다운 가능한 apk파일이 만들어진다.

eas build -p android --profile preview

https://docs.expo.dev/

 

Expo Documentation

 

docs.expo.dev

https://expo.dev/eas

 

Expo Application Services (EAS)

Deeply integrated cloud services for Expo and React Native apps, from the team behind Expo.

expo.dev

 

'개발 > 프로젝트' 카테고리의 다른 글

[Next.js13] 2023. 새로운 next  (0) 2023.05.21
Next.js에서 나만의 customAlert 만들기  (0) 2023.04.21
데러쿱  (0) 2021.11.19
데러쿱  (0) 2021.11.18
DAERKOOB  (0) 2021.10.28
Comments