This sample showcases the usage of React Native for Windows to interact with the Win32 ecosystem using App Services. This sample is documented in the following article.
It currently targets React Native Windows 0.71.
First, make sure you've met the React Native Windows System Requirements.
Then, within this folder, install the application's dependencies. If you have yarn
installed:
yarn install
Otherwise, you can just use npm:
npm install
Since this scenario is using a special configuration, you can't build and run the project using the CLI, but you have to take the following steps:
-
Open with Visual Studio the solution included in the
windows
folder. -
Right click on the
appservicedemo.Package
project and choose Set as startup project. -
From the Configuration Manager dropdown, make sure you're building for the right CPU architecture (x86 or x64).
-
Right click on the
appservicedemo.Package
project and chooseDeploy
. -
Open a terminal on the folder which contains the project and run the following command:
yarn start
-
Open the Start menu and launch the
appservicedemo.Package
application.