I built a react-native app for Windows (https://github.com/Microsoft/react-native-windows). The app runs fine on my development machine, but if I copy the EXE (and DLL dependencies) to another machine and run, I get the error message
Unable to Download the JS bundle. Did you forget to start the development server or connect your device?
Is there a way to build a self-contained app that does not depend on a "development server"?
React Native Windows Environment Setup (with Typescript)
Install React Native CLI
npm i -g react-native-cli
Install TypeScript
npm i -g typescript
Create your project
react-native init --version="0.55.0-rc.0" MyApp --template typescript && node MyApp/setup.js
Change project directory MyApp
cd MyApp
Install the React Native Windows CLI Plugin
npm i --save-dev rnpm-plugin-windows
Run the Windows initialization command
react-native windows --windowsVersion 0.55.0-rc.0
Open project MyApp.sln file in Visual Studio
Follow the prompts to install the Windows 10 SDK v. 10.0.14393.0
If prompted, select Developer Mode in the Settings window under "Use developer features" and approve the Certificate Installation request. Enable "Developer mode" to allow the custom application to run
Install windows build tools (run in Windows Power Shell)
npm i -g --production windows-build-tools
Run your application
react-native run-windows
Prompt Windows PowerShell Installing Certificate: Enter Y to install
Prompt window: Allow Access to windows firewall