When I run the application on the emulator, it works well. But when I try to run it on my device in debug mode. The error appears: Unable to load script. make sure you're either running a metro server react native Note: I'm using yarn.
Asked
Active
Viewed 303 times
0
-
Are you trying to run iOS or android? – Michael Bahl Oct 15 '21 at 08:12
-
I'm trying it on android @MichaelBahl – Arslan Oct 15 '21 at 09:54
-
Did you try https://reactnative.dev/docs/running-on-device adb -s
reverse tcp:8081 tcp:8081 – Michael Bahl Oct 15 '21 at 11:35