`npm run android` acts like `npm start`
See original GitHub issueI would like to use connected Android device as using local network is not possible for me.
Description
So I tried npm run android
but there is no difference in behaviour from npm start
Environment
Please run these commands in the project folder and fill in their results:
npm ls react-native-scripts
: react-native-scripts@0.0.31npm ls react-native
: react-native@0.44.3npm ls expo
: expo@17.0.0 \node -v
: v7.8.0npm -v
: 4.2.0
-
Operating system: Linux (Arch Linux)
-
Phone Nexus 5x
-
run
npm run android
-
See output:
8:08:40 PM: Starting packager...
8:08:55 PM: Starting Android...
8:08:57 PM: Packager started!
To view your app with live reloading, point the Expo app to this QR code.
You'll find the QR scanner on the Projects tab of the app.
...
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:9 (2 by maintainers)
Top Results From Across the Web
What is the difference between "npm start" and "react-native ...
react-native run-android: basically it run the npm start command and then build and install the debug apk to the device.
Read more >whitelabsapp - npm
npm run android. Like npm start , but also attempts to open your app on a connected Android device or emulator. Requires an...
Read more >Installation - Vue Native
This works just like npm start , but also attempts to open your app in the iOS Simulator if you're on a Mac...
Read more >Setting up the development environment - React Native
If you are already familiar with mobile development, you may want to use React Native CLI. It requires Xcode or Android Studio to...
Read more >Running React Native Apps on Android - Instamobile
cd ~/path/to/template; npm install && react-native run-android ... which has a built-in Terminal that behaves exactly like the terminal on MacOS.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same issue here. I expect
npm run android
to launch the react native app on my connected Android device to my host computer. What happens is instead identical to npm start.Same issue on both Windows and Linux.
I understand that Expo is trying to do something like hot-reloading,
and I understand that some of you are also developers of Expo,
but can you provide a simple way to run the app on physical device without Expo?
Also, the command
npm run android
is a very confusing command name.