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 ?
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With