Here’s what worked for me, strange.
Corrupted node modules, delete them and npm install again.
Running development on simulator works fine but when I try to have on my real device it gave the error.
Now it fixed.