Skip to content

Latest commit

 

History

History

Calculator

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Calculator - React Native for Windows

This sample showcases the usage of React Native for Windows to build a simple calculator. It includes implementations in C# and C++/WinRT.

It currently targets React Native Windows 0.76.

Setup

First, make sure you've met the React Native Windows System Requirements.

Then, within the csharp or cppwinrt folder, install the applications's dependencies. If you have yarn installed:

yarn install

Otherwise, you can just use npm:

npm install

Run

Once you have all of the dependencies installed, you can run the application with the following command:

npx @react-native-community/cli@latest run-windows

The command will:

  • Build the application and all dependencies
  • Deploy the application
  • Launch the React Native Server and Debugger
  • Launch the application

Upgrade

To upgrade either sample to the latest version of RNW, see their individual readme file.