react-native android-studio에서 콘솔확인법

코드깎는 노인·2021년 6월 11일
0

react-native android 디버그 apk 빌드시
android/app/src/main/assets/index.android.bundle 파일이 존재 하면 삭제
수정 사항들 반영 (예 npx react-native link) 후
npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle
재 생성
안드로이드 스튜디오에서 디버그 앱 설치 후 콘솔을 통해 리액트에서 지정한 콘솔 확인

assets 이미지 폰트같은게 link 로 생성 안될경우 그냥 npx react-native run-android 실행 후 번들 파일 재 생성

profile
내가 볼려고 만든 블로그

0개의 댓글