Zgrooza
Zgrooza

Reputation: 11

Running React Native Expo App locally using USB debugging

I'm learning react and i want to debug my app using my android device but i don't want to use the Expo Go app.

Tried these commands as per my research but none of these works:

  1. react-native run-android error log: Uncaught SyntaxError: Unexpected identifier 'run'
  1. expo start --localhost --android error log: expo : File C:\Users\HP\AppData\Roaming\npm\expo.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. At line:1 char:1

Did i miss something during react native or expo installation/setup?

Upvotes: 1

Views: 518

Answers (1)

Albeiro Burbano
Albeiro Burbano

Reputation: 1

While you can run and debug your React Native Expo app on your Android device without using the Expo Go app, it's important to mention that the experience is generally better and easier when you use Expo Go. This is due to the integration and simplified debugging tools it provides.

Note: The expo start --localhost --android commands would normally work if you are using the Expo Go app.

Upvotes: 0

Related Questions