Red Shift

The official Infinite Red publication for React Native design & development. We’re a fully distributed team building world-class apps for over 20 years for clients all around the world.

Follow publication

Getting Started with React Native Development for Windows

Kevin VanGelder
Red Shift
Published in
3 min readJan 17, 2017

--

Last time, we discussed getting started with React Native development on Windows (for Android). I know, the title was a bit of a tease when all you could really do was develop Android applications, but the good news is that you can now develop React Native Windows applications! Luckily, setting up for Windows development is much less complicated, though the download steps can be somewhat time consuming. Let’s get started!

Note: my computer is running a Windows Insider build, so some additional steps may be necessary if you are running vanilla Windows.

Step 1: Prerequisites

Step 2: Initialize Your React Native Project

  • Open a command prompt: Win then cmd
  • Install React Native: npm i -g react-native-cli
Installing the React Native CLI tool
  • Create your project: react-native init MyProject

Step 3: Configure Your Project for Windows Development

  • Use ReactNative0.41.0 in package.json
  • Install the React Native Windows CLI Plugin: npm i --save-dev rnpm-plugin-windows
  • Run the Windows initialization command: react-native windows --windowsVersion 0.41.0-rc.0
Initializing Windows in the project
  • Open MyProject/windows/MyProject.sln in Visual Studio
  • Follow the prompts to install the Windows 10 SDK v. 10.0.10586.0
    Note: You’ll only have to do this step once per machine.
  • 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
  • Run your application react-native run-windows
Starting the Windows application from the command line
Running our React Native UWP application!

Step 4: Profit!

That’s it! Now you can start building your React Native Windows Application. With UWP, you can target your application at any device running Windows 10, from headless IoT devices to HoloLens to Xbox and of course desktops/laptops and phones!

Some of you probably have your hearts set on developing a desktop application for older versions of Windows, and you’re not alone. BlueJeans, one of our distinguished clients, is generously sponsoring the development of Windows 7/8.1 support into React Native Windows as part of the development of their next-generation video conferencing client and it will be available in the near future. When Windows 7/8.1 support is ready we’ll be posting another article, so subscribe to Red Shift and check out the BlueJeans Blog for updates on their next-generation video conferencing client.

About Kevin

Kevin is a Software Engineer at Infinite Red (web and mobile app development), Microsoft fan-boy, tinkerer, open-source contributor, and student helicopter pilot. Read the writings of Kevin and his co-workers in our Red Shift publication.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Published in Red Shift

The official Infinite Red publication for React Native design & development. We’re a fully distributed team building world-class apps for over 20 years for clients all around the world.

Written by Kevin VanGelder

Senior Software Engineer at VanGelder Technologies, Microsoft fan-boy, tinkerer, open-source contributor, and future homesteader.

Responses (11)

Write a response