Unable to load script. Make sure you're either running a Metro server (run 'react-native start') ...

Unable to load script. Make sure you're either running a Metro server (run 'react-native start') or that your bundle Unable to load script. Make sure you're either running a Metro server (run 'react-native start') or that your bundle "index.android.bundle' is packaged correctly for release.

Unable to load script. Make sure you're either running a Metro server (run 'react-native start') ..._第1张图片
image.png

当我们遇到这个问题
打开自己得app,点击右侧更多->摇一摇->Dev Setting->debugging->Debug Server Host,输入本电脑的IP :8081,确定,返回


Unable to load script. Make sure you're either running a Metro server (run 'react-native start') ..._第2张图片
image.png

l在模拟器自己的app界面中,双击键盘RR 刷新调试程序

Unable to load script. Make sure you're either running a Metro server (run 'react-native start') ..._第3张图片
image.png

当出现这个时候 差不多就没问题了

你可能感兴趣的:(Unable to load script. Make sure you're either running a Metro server (run 'react-native start') ...)