React Native

Problem: Blank screen after generating signed apk

If your react native android app shows a blank screen on simulator or device, probably you do not have a react.gradle file under android/app. You have to bundle the javascript package and drawable resources. Run this code to solve the problem;

mkdir android/app/src/main/assets

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

react-native run-android

Related Posts

Leave a Reply