最近開始上手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