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