React native iOS app No script URL provided 报错的解决方案
React native iOS app安装成功,但是到最后一步打开 app 是提示如下错误:
No script URL provided. Make sure the packager is running or you have embedded a JS bundle in your application bundle.
unsanitizedScriptURLString = (null)
解决方案
如果是 mac os,在终端 vi /etc/hosts,添加如下行:
127.0.0.1 localhost
windows 系统操作步骤类似。
即可解决问题。