1、react-native init ProjectName
2、ios项目缺少main.jsbundle,在终端中进入iOS目录,npm start,
3、然后就在这个状态下不动了:
React packager ready.
Loading dependency graph, done.
4、这时候你应该再打开一个终端窗口,来到项目目录下运行
curl http://localhost:8081/index.ios.bundle -o main.jsbundle
文章参考
5、运行起来之后又报错:
Unhandled JS Exception:Unexpected token':'.Parse error.