在ReactNative中调用RCTDeviceEventEmitter.emit时出错

toh*_*and 12 android react-native

我在ReactNative中更新...在我的设备中安装第一个项目之后显示以下错误:

调用RCTDeviceEventEmitter.emit时出错

问题是什么 ? 在此输入图像描述

Roh*_*ala 10

从我的所有研究中,对我有用的解决方案如下:

通过键入启动应用程序时react-native run-android,将显示错误.

所以,到达包含"adb.exe"的目录(对我来说是C:\ Users\username\AppData\Local\Android\Sdk\platform-tools \)

从这里开个终点站.并输入adb reverse tcp:8081 tcp:8081

然后,通过在手机上重新加载应用程序,它应该工作.

  • 我觉得我之前已经看过这个答案... x) http://stackoverflow.com/questions/43744156/error-calling-appregistry-runapplication-in-react-native/43789531#43789531 (2认同)