본문 바로가기
React Native

React Native - Expo Go to Android APK

by NJ94 2023. 8. 25.

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

 

😀 Install Expo CLI

$ expo -V

-> 5.3.0
$ npm install --global expo-cli eas-cli

 

😀 Expo Create your account

 

https://expo.dev/signup

 

Sign Up — Expo

Create an account for Expo here.

expo.dev

 

😀 Login to expo CLI

$ expo login

√ You are already logged in as {email}. Log in as new user? ... yes
√ Username/Email Address: ... 
√ Password: ...


//로그인 체크
$ expo whoami

√ Logged in as {your email..}

 

😀 create file eas.json

 

{
    "build": {
      "preview": {
        "android": {
          "buildType": "apk"
        }
      },
      "preview2": {
        "android": {
          "gradleCommand": ":app:assembleRelease"
        }
      },
      "preview3": {
        "developmentClient": true
      },
      "production": {}
    }
}

 

😀 Build

$ eas build -p android --profile preview

 

 

 

😀 참고

https://dev.to/chinmaymhatre/how-to-generate-apk-using-react-native-expo-kae

 

How To Generate apk Using React Native Expo

Introduction Hey everyone! Here is a quick article on how to generate an apk for your...

dev.to

 

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

React Lifecycle  (0) 2023.08.25