I have been trying to build the Signed APK of an application having simple navigation drawer. I have created the keystore as followed the official react docs. But finally once oi created the bundle i am trying to run "react-native run-android --variant=release", it gives a successful build but the app crashes once i open the nav drawer swipe right. But the app works totally fine running with the development server. I even tried $ cd android && ./gradlew bundleRelease , even then the application crashes at the same point. Can even suggest me how could i fix this , will this be a setup issue ?
Try to bundle all assets but before that delete files inside directory
android/app/src/main/assets
and then run $ 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
and then try to continue with your steps.