본문 바로가기
개발

[react-native] dev-server 없이 apk 만들기

by 제이콥 2020. 5. 11.

프로젝트에서 아래 명령어를 실행합니다.
그리고 android studio에서 apk build를 합니다.

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/

아래 블로그를 참고했습니다.

 

https://yoursyun.tistory.com/entry/react-native-unsigning-apk-%EC%84%9C%EB%B2%84%EC%97%86%EC%9D%B4-APK-%EB%B9%8C%EB%93%9C

react native unsigning apk - 서버없이 APK 빌드

Project 위치에서 아래와 같이 실행한다. 1. android/app/src/main/assets/ 폴더 존재여부 확인. 없다면 만들어 준다. 2. react-native bundle --platform android --dev false --entry-file index.js --bundle-ou..

yoursyun.tistory.com

 

댓글