My react-native debug app is throwing the below error the moment I open it,
On clicking reload, it throws me below error screen,
I went through this and made the changes in my android manifest file(android:usesCleartextTraffic="true")
, but still the same issue is happening
.
It works perfectly fine while running react-native run-android
and connecting my physical device but in debug APK it doesn't and throws above error.
I made the debug APK using below steps, I manually created the bundle using the below command, RN version- 0.60.0
react-native bundle --dev false --platform android --entry-file index.js --bundle-output ./android/app/build/intermediates/assets/debug/index.android.bundle --assets-dest ./android/app/build/intermediates/res/merged/debug
and then
cd android && ./gradlew assembleDebug
Please help me out here. Thanks a lot!