I am begginer in ReactNative ... After install the first project in my Device This error was displayed:
Error calling RCTDeviceEventEmitter.emit
I am begginer in ReactNative ... After install the first project in my Device This error was displayed:
Error calling RCTDeviceEventEmitter.emit
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.
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!
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.