نص الخطأ
App opens to a blank white or black screen; logcat: Unable to load script. Make sure you're either running Metro or that your bundle 'index.android.bundle' is packaged correctly for release.
App opens to a blank white or black screen; logcat: Unable to load script. Make sure you're either running Metro or that your bundle 'index.android.bundle' is packaged correctly for release.
يفتح التطبيق لكن تبقى الشاشة فارغة. لم تُضمَّن حزمة JS في الحزمة، أو وقع خطأ JS عند أول رسم.
adb logcat عن Unable to load script أو خطأ JS.assets/index.android.bundle../gradlew clean assembleRelease.try/catch وErrorBoundary.http فاقرأ صفحة network security config.adb logcat *:E | grep -i -E "react|bundle|script" npx 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 cd android && ./gradlew clean assembleRelease
قبل كل release ثبّت APK على هاتف دون أدوات تصحيح وافتحه.
المؤلف والترخيص: Nibras Code