react-native icon indicating copy to clipboard operation
react-native copied to clipboard

[Windows] Add Hyper-V Android Emulator to react-native documentation.

Open BerndWessels opened this issue 11 years ago • 7 comments

A lot of developers, especially in the enterprise space are using Hyper-V on their machines. Unfortunately the default Android Emulator cannot be hardware accelerated if Hyper-V is turned on and turning it off is often not an option.

Fortunately there is a great and free android emulator that uses Hyper-V.

The Visual Studio Emulator for Android. The standalone download link is at the bottom of that page. It doesn't require you to install Visual Studio at all.

It is free, very powerful, fast and you don't have to turn off your Hyper-V to use the default Android Emulator.

I think this information and the following instruction should make it into the official react-native getting started guide.

To use it with react-native you just have to add a key and value to your registry:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Android SDK Tools

String Value: Name: Path Value: C:\Program Files\Android\sdk

Obviously the path value might be different on your machine.

This emulator also need the adb reverse tcp:8081 tcp:8081 command executed once before starting.

Then restart the emulator and when it is running you can just do react-native run-android as usual.

visual studio emulator regedit

BerndWessels avatar Oct 05 '15 01:10 BerndWessels

Thank you for the information you've provided

mikearmstrong001 avatar Oct 05 '15 10:10 mikearmstrong001

@BerndWessels Can you send a pull request to add this to the doc?

satya164 avatar Dec 24 '15 20:12 satya164

@satya164 Happy New Year. I added this PR here. Cheers Bernd

BerndWessels avatar Jan 04 '16 19:01 BerndWessels

@BerndWessels Thanks a lot. I've reviewed it. Let's get it merged soon :)

satya164 avatar Jan 04 '16 20:01 satya164

@satya164 Great, looking forward to it. I try to pave the way to get react and react-native into more enterprise companies which are (at least in NZ and DE) still mostly Windows and C# shops. So everything that makes react easier to use on windows will increase its uptake hugely I believe. Cheers Bernd

BerndWessels avatar Jan 04 '16 20:01 BerndWessels

Is this no longer supported? I can see this is removed in version 0.29

sinujohn avatar May 17 '17 18:05 sinujohn

Does Android Studio have to be installed in order to use Visual Studio Emulator for react native?

ksk438 avatar Nov 04 '17 00:11 ksk438