Compiling React Native for Windows (on Windows)
Has anyone successfully compiled and run a Windows App (UWP) on a Windows (10) machine using React Native?
I have created an app that runs in an Android emulator. I followed instructions from Microsoft here and here .
I am using VS Code for my editor ... should I be using Visual Studio?
I ran these commands to convert an existing project to a Windows project that adds the Windows file structure. It works.
npm install --save-dev rnpm-plugin-windows
react-native windows
I ran:
react-native run-windows
Which basically works, but fails at the end.
At this point in the download, I get the error:
Building C:/Users/..../MyApp/windows/MyApp.sln
ERROR: The system was unable to find the specified registry key or value.
The rest seems to install fine, but in the end ...
Press Enter to continue...:
Failed to deploy: Command failed: CheckNetIsolation LoopbackExempt -a -n=
I searched for this error and got literally zero results. Does anyone have something to help me get over this hump?
Do I have to have a Windows emulator on my machine, such as an Android emulator, or does it just run like any other program?
Also, I am not allowed to create a new tag unless I have 1500 unicorn magic points, so can someone create a react-native windows tag for future users?
source to share
Decision:
CheckNetIsolation LoopbackExempt -a -n=MyApp
Where "MyApp" is the name of your project folder.
Thanks to @Onorio Catenacci for the link which has hints to put it together.
source to share