D
D
Dmitry Esin2018-03-17 13:43:09
Android
Dmitry Esin, 2018-03-17 13:43:09

How to properly deploy a react-native app in Visual Studio Emulator for Android?

Please tell me how to properly deploy the application in the emulator?
My surrounding:

  • Windows 10 Pro
  • react-native app generated via create-react-native-app
  • Visual Studio Emulator for Android
  • ExpoXDE

I tried to run through Expo XDE (Device -> Open on Android) - I get an error: No Android device found. Please connect a device and follow the instructions here to enable USB debugging: https://developer.android.com/studio/run/device.ht... If you are using Genymotion go to Settings -> ADB, select "Use custom Android SDK tools", and point it at your Android SDK directory.
Through cli with the start is also a problem.
On StackOverflow I found a description of a solution with edits to the windows registry, but there the solution works for Android Studio and requires the installation of Android SDK Tools, and I would like to get by with just my favorite IDE and Visual Studio emulator.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danil Chekalin, 2018-03-19
@SunDeath

Not so long ago I worked with Expo, but left it, so from memory: Android Studio is not needed in this case. You need to install the Expo app on your mobile phone. After running the $ npm run android application , you should have a QR code in the console, you can scan it in the Expo mobile application, and the application will render. That's all. As for the output to the emulator, I will not tell you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question