14

I am begginer in ReactNative ... After install the first project in my Device This error was displayed:

Error calling RCTDeviceEventEmitter.emit

What is the problem ? enter image description here

tohidmahmoudvand
  • 256
  • 2
  • 14

3 Answers3

11

From all my research, the solution that worked for me is the following :

When you launch your app by typing react-native run-android, the error appears.

So, reach your directory containing "adb.exe" ( for me it was C:\Users\username\AppData\Local\Android\Sdk\platform-tools\ )

open a terminal from here. And type adb reverse tcp:8081 tcp:8081

Then, by reloading the app on the phone, it should work.

Rohan Gala
  • 641
  • 5
  • 18
2

finally, I found the solution and it's working for me now.

if you are using ReactNative in windows you must turn off the firewall then it will work!

Mohsen mokhtari
  • 2,841
  • 1
  • 30
  • 39
0

That's how I resolved it.

Terminate your metro bundler > react-native link > react-native run-ios

It was not bundling because of some errors which are not showing into the emulator but just bundling was failed. After I re-bundled the package from starting, the error was resolved.

Payel Dutta
  • 742
  • 10
  • 23