[ReactNative] Android APK를 생성해보자

이지민·2024년 11월 13일

ReactNative

목록 보기
9/12

1. React-Native 프로젝트 루트 폴더>android>app>src>main에 assets 폴더를 만든다

2. 터미널에 다음과 같이 작성한다

react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/

3. Android Studio를 켜서 폴더를 open하는데, RN폴더가 아닌 해당 프로젝트의 android 폴더를 연다

4. Build > Build Bundle > Build APK 한다.

5. 기다리면 ProjectName > android > app > build > outputs > apk > debug에 apk파일이 생성된다.

profile
개발자가 되고싶어요

0개의 댓글