A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://microsoft.github.io/react-native-windows/docs/getting-started below:

Get Started with Windows · React Native for Windows

This guide will help you get started on setting up your very first React Native for Windows app.

Make sure you have installed all of the development dependencies.

For information around how to set up React Native, see the React Native Getting Started Guide.

Interested in migrating to React Native's New Architecture? New Architecture support in React Native for Windows is now available to preview in 0.76. Note there are several key changes, so if you’d like to be an early adopter, check out the information in the New Architecture Guide.

Create a new React Native project

Call the following from the place where you want your project directory to live:

npx --yes @react-native-community/cli@latest init <projectName> --version "^0.79.0"
Navigate into this newly created directory

The command will create your project in a new sub-directory, which you must enter before continuing:

cd <projectName>
Add React Native Windows to your project's dependencies

Next you'll want to add react-native-windows as a dependency:

Using Yarn (Recommended)

Using NPM

yarn add react-native-windows@^0.79.0
npm install --save react-native-windows@^0.79.0
Initialize the React Native Windows native code and projects

Lastly, initialize the React Native for Windows application with the init-windows command:

npx react-native init-windows --overwrite

Note: RNW templates contain a customized metro.config.js file, which is meant to merge cleanly into the default config provided by the standard React Native project template. If you are starting a new app, overwriting metro.config.js should have no impact. However, if you are adding Windows to an existing app with an already modified metro.config.js file, please make sure to back up and re-apply your modifications after adding RNW.

Running a React Native Windows App

Make sure a browser is launched and running before running a React Native Windows app. Also ensure your system meets all the requirements to build a Windows app as well.

Authoring Native Modules

See Native Platform: Overview.

Building a standalone React Native Windows App

Follow these steps to build a version of your app that you can install or publish to the store. This version will package your bundle and assets into the APPX package so you don't need to run Metro.

The Debug configuration uses the Web Debugger by default, which means the application's JavaScript code runs in Chrome.
If you're getting different runtime behavior between the Release and Debug configurations, consider disabling the UseWebDebugger setting in App.cpp or App.xaml.cs to get the same behavior in the Debug configuration.

See also this article for additional details: https://techcommunity.microsoft.com/t5/windows-dev-appconsult/getting-started-with-react-native-for-windows/ba-p/912093#


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4