最近开始上手react native,创建一个工程后,在执行react-native start 时报“error: bundling failed: Error: The resource `E:\work_program\Android\HelloProject\index.android.js` was not found.”错误。
经查资料发现:是react native更新的一些变动。原来工程中会创建:index.ios.js
和index.android.js,现在只会创建index.js。一个简单的规避方法,就是copy 一份index.js 文件命名为index.android.js即可。
参考:https://github.com/facebook/react-native/releases/tag/v0.49.0