react-native No Bundle URL Present

一、package server 没有启动

启动服务

react-native start

二、切换网路环境导致

以iOS为例,移除iOS下build的内容,然后再重新启动

rm -rf ios/build/
react-native run-ios

三、是否使用了host

添加host
例如

127.0.0.1 localhost

你可能感兴趣的:(react-native No Bundle URL Present)