often when I have the Chrome Dev Tools open while developing React Native Android on my device, I get the following Error:
Did not get valid calls back from JS: [[],[],[],[],[]]
callFunction
ReactBridge.java:-2
run
CatalystInstanceImpl.java:203
...
// ???????
这个问题是因为:react native的依赖包 node_module的依赖有问题,主要是版本的问题。
解决办法: 将 node_module的依赖包删掉,重新加载、关联。
1、安装库文件:npm install
2、安装依赖:react-native link
3、react-native run-android 然后就可以运行了