1.invariant violation:expected a component class,got[object object] 建立自定義組件首字母要大寫,不然會報錯.react
2.Module 0 is not a registered callable module. 將gradle升級成最新版本(cd android 進入android目錄執行:sudo ./gradlew clean) 或者經過android studio工具升級.android
3.android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running? 該錯誤屬於安卓Native的錯誤,若是引用的Activity不存在或者已經銷燬,再次引用就會報該錯誤,若是是react native 調用原生控件的話,建立控件須要引用:getCurrentActivity()app
4.android.app.Application cannot be cast to com.facebook.react.ReactApplication 須要將建立的MainApplication在AndroidManifest.xml配置好.函數
5.Element type is invalid: expected a string (for built-in components) or a class/function but got: object 發生原生通常是你引用了無效的組件,若是組件確實正確,看下引用的組件是否正常導出:(export defalut)工具
6.react native undefined is not an object (evaluating this.... 發生該錯誤的通常是忘記bind(this),只要回調函數中須要用到this的,通常都須要bind.gradle
7.react native - expected a component class, got [object Object] 該錯誤多是你引用了小寫的組件,組件首字母必定要大寫,好比<login/>應該寫成<Login/>ui