Skip to content

Commit 19530ba

Browse files
Copilotanupriya13
andauthored
Upgrade Website to React Native Windows 0.80, Add New Architecture Property Support, and Migration Guide (#1073)
- [x] Update website to React Native Windows 0.80 - [x] Add New Architecture Property Support documentation - [x] Configure sidebar navigation for New Architecture section - [x] Add Missing Properties page with GitHub link - [x] Fix spelling check issues - [x] Move New Architecture Property Support section under APIs - [x] Delete new-architecture.md file as requested - [x] Update sidebar configuration to place section correctly - [x] Add Migration Guide page for Paper to Fabric migration - [x] Include comprehensive migration steps using Calculator app example The website upgrade to React Native Windows 0.80 is complete with the New Architecture Property Support section now properly organized under the APIs section. The Missing Properties page is accessible at the correct URL with the requested content. ## Migration Guide Added a comprehensive Migration Guide page that documents the process of migrating from Paper (Old Architecture) to Fabric (New Architecture) using the sample Calculator app as a real-world example. The guide includes: - Introduction to React Native 0.80 and the New Architecture (Fabric + TurboModules) - Key concepts explaining Paper vs Fabric architecture differences - Prerequisites for migration - Step-by-step migration instructions using the Calculator app - Instructions for reverting to Paper architecture if needed - Notes on third-party module compatibility and Flyout/Popup behavior updates The Migration Guide is positioned in the sidebar under "The Basics" section, immediately following the "Upgrading App" page, making it easily discoverable for developers upgrading to version 0.80. <!-- START COPILOT CODING AGENT TIPS --> --- 💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click [here](https://survey.alchemer.com/s3/8343779/Copilot-Coding-agent) to start the survey. ###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/microsoft/react-native-windows-samples/pull/1073) --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: anupriya13 <[email protected]>
1 parent 572d191 commit 19530ba

File tree

14 files changed

+1588
-14
lines changed

14 files changed

+1588
-14
lines changed

.spelling

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,5 +124,48 @@ WinGet
124124
WinRT
125125
WinUI
126126
WinUI3
127+
Xcode
128+
80-native-platform-getting-started
129+
sidebar_label
130+
original_id
127131
workstream
128-
Xcode
132+
onKeyDown
133+
onKeyUp
134+
PreviewKeyDown
135+
PreviewKeyUp
136+
zIndex
137+
focusable
138+
eg
139+
tooltip
140+
UIManager
141+
bridge-based
142+
uwp
143+
cpp-app
144+
old-uwp
145+
init-window
146+
cppwinrt
147+
anupriya13
148+
JS/TSX
149+
migration-guide
150+
version-0.80-migration-guide
151+
WinAppSDK
152+
18.x
153+
13.x
154+
v17.10
155+
10.0.22621.0
156+
package.json
157+
9e5d850e843acc2ff060fbd64673511cc67265f9
158+
microsoft
159+
react-native-windows-samples
160+
src
161+
snapToInterval
162+
snapToAlignment
163+
decelerationRate
164+
pagingEnabled
165+
textAlign
166+
ltr
167+
rtl
168+
e.g.numeric
169+
ascii-capable
170+
url
171+
VSCode

website/.unbroken_exclusions

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
!versioned_docs/version-0.77/native-api/*-api-windows*.md
1919
!versioned_docs/version-0.78/native-api/*-api-windows*.md
2020
!versioned_docs/version-0.79/native-api/*-api-windows*.md
21+
!versioned_docs/version-0.80/native-api/*-api-windows*.md
2122

2223
# See Issue 410
2324
File not found IReactContext while parsing versioned_docs/version-0.64/native-modules-advanced.md
@@ -37,6 +38,33 @@ URL not found https://www.npmjs.com/package/rnpm-plugin-windows while parsing ve
3738
URL not found https://www.npmjs.com/package/react-native-macos while parsing versioned_docs/version-0.78/rnm-getting-started.md (HTTP 403)
3839

3940
#fix-unbroken.js auto-generated do not edit this line or below
41+
File not found autolink-windows-cli.md while parsing versioned_docs/version-0.80/getting-started.md
42+
File not found getting-started.md while parsing versioned_docs/version-0.80/getting-started.md
43+
File not found init-windows-cli.md while parsing versioned_docs/version-0.80/getting-started.md
44+
File not found native-platform.md while parsing versioned_docs/version-0.80/getting-started.md
45+
File not found new-architecture.md while parsing versioned_docs/version-0.80/getting-started.md
46+
File not found platform.md while parsing versioned_docs/version-0.80/getting-started.md
47+
File not found rnw-dependencies.md while parsing versioned_docs/version-0.80/getting-started.md
48+
File not found run-windows-cli.md while parsing versioned_docs/version-0.80/getting-started.md
49+
File not found run-windows-cli.md while parsing versioned_docs/version-0.80/hermes.md
50+
File not found native-code-language-choice.md while parsing versioned_docs/version-0.80/native-modules.md
51+
File not found native-modules-advanced.md while parsing versioned_docs/version-0.80/native-modules.md
52+
File not found native-modules-async.md while parsing versioned_docs/version-0.80/native-modules.md
53+
File not found native-modules-jsvalue.md while parsing versioned_docs/version-0.80/native-modules.md
54+
File not found native-modules-setup.md while parsing versioned_docs/version-0.80/native-modules.md
55+
File not found native-modules-vs-turbo-modules.md while parsing versioned_docs/version-0.80/native-modules.md
56+
File not found native-platform.md while parsing versioned_docs/version-0.80/native-modules.md
57+
File not found new-architecture.md while parsing versioned_docs/version-0.80/native-modules.md
58+
File not found platform.md while parsing versioned_docs/version-0.80/native-modules.md
59+
File not found view-managers.md while parsing versioned_docs/version-0.80/native-modules.md
60+
File not found getting-started.md while parsing versioned_docs/version-0.80/native-platform-getting-started.md
61+
File not found init-windows-cli.md while parsing versioned_docs/version-0.80/native-platform-getting-started.md
62+
File not found native-platform-components.md while parsing versioned_docs/version-0.80/native-platform-getting-started.md
63+
File not found native-platform-modules.md while parsing versioned_docs/version-0.80/native-platform-getting-started.md
64+
File not found rnw-dependencies.md while parsing versioned_docs/version-0.80/native-platform-getting-started.md
65+
File not found run-windows-cli.md while parsing versioned_docs/version-0.80/native-platform-getting-started.md
66+
File not found autolink-windows-cli.md while parsing versioned_docs/version-0.80/upgrade-app.md
67+
File not found init-windows-cli.md while parsing versioned_docs/version-0.80/upgrade-app.md
4068
File not found new-architecture.md while parsing versioned_docs/version-0.79/app-publishing.md
4169
File not found run-windows-cli.md while parsing versioned_docs/version-0.79/autolink-windows-cli.md
4270
File not found new-architecture.md while parsing versioned_docs/version-0.79/config.md

website/pages/en/support.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ The React Native for Windows (RNW) Team strives to provide full support for the
1414
| Version | Support Phase | Release Date | Active Support Start | Maintenance Support Start | End of Support |
1515
| -- | -- | -- | -- | -- | -- |
1616
| [main](https://www.npmjs.com/package/react-native-windows/v/canary) | [Canary](#canary-support) | *N/A* | *N/A* | *N/A* | *N/A* |
17-
| [0.79](https://www.npmjs.com/package/react-native-windows/v/latest) | [Active](#active-support) | 06/17/2025 | 06/17/2025 | *TBD* | *TBD* |
17+
| [0.80](https://www.npmjs.com/package/react-native-windows/v/latest) | [Active](#active-support) | 12/16/2025 | 12/16/2025 | *TBD* | *TBD* |
18+
| [0.79](https://www.npmjs.com/package/react-native-windows/v/v0.79-stable) | [Active](#active-support) | 06/17/2025 | 06/17/2025 | 01/31/2026 | 03/31/2026 |
1819
| [0.78](https://www.npmjs.com/package/react-native-windows/v/v0.78-stable) | [Active](#active-support) | 02/27/2025 | 02/27/2025 | 07/31/2025 | 09/30/2025 |
1920
| [0.77](https://www.npmjs.com/package/react-native-windows/v/v0.77-stable) | [Unsupported](#unsupported) | 01/24/2025 | 01/24/2025 | 03/27/2025 | 05/31/2025 |
20-
| [0.76](https://www.npmjs.com/package/react-native-windows/v/v0.76-stable) | [Unsupported](#unsupported) | 11/11/2024 | 11/11/2024 | 02/28/2025 | 04/30/2025 |
21-
| [0.75](https://www.npmjs.com/package/react-native-windows/v/v0.75-stable) | [Unsupported](#unsupported) | 8/19/2024 | 8/19/2024 | 12/31/2024 | 02/28/2025 |
2221
2322
<!--
2423
// We don't want the table to grow indefinitely, so only keep the last 5 stable (non-main) versions visible above, keep the rest here for posterity.
24+
| [0.76](https://www.npmjs.com/package/react-native-windows/v/v0.76-stable) | [Unsupported](#unsupported) | 11/11/2024 | 11/11/2024 | 02/28/2025 | 04/30/2025 |
25+
| [0.75](https://www.npmjs.com/package/react-native-windows/v/v0.75-stable) | [Unsupported](#unsupported) | 8/19/2024 | 8/19/2024 | 12/31/2024 | 02/28/2025 |
2526
| [0.74](https://www.npmjs.com/package/react-native-windows/v/v0.74-stable) | [Unsupported](#unsupported) | 4/29/2024 | 4/29/2024 | 9/30/2024 | 11/30/2024 |
2627
| [0.73](https://www.npmjs.com/package/react-native-windows/v/v0.73-stable) | [Unsupported](#unsupported) | 12/11/2023 | 12/11/2023 | 5/31/2024 | 7/31/2024 |
2728
| [0.72](https://www.npmjs.com/package/react-native-windows/v/v0.72-stable) | [Unsupported](#unsupported) | 06/23/2023 | 06/23/2023 | 01/31/2024 | 03/31/2024 |

website/sidebars.json

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"docs": {
3-
"The Basics (Windows)": [
3+
"The Basics": [
44
"getting-started",
55
"rnw-dependencies",
66
"react-native-windows-cli",
@@ -14,21 +14,21 @@
1414
"app-publishing",
1515
"supported-community-modules"
1616
],
17-
"CLI Commands (Windows)": [
17+
"CLI Commands": [
1818
"autolink-windows-cli",
1919
"codegen-windows-cli",
2020
"init-windows-cli",
2121
"run-windows-cli"
2222
],
23-
"Native Development (Windows)": [
23+
"Native Development": [
2424
"native-platform",
2525
"native-platform-getting-started",
2626
"native-platform-modules",
2727
"native-platform-components",
2828
"native-platform-components-paper",
2929
"native-platform-using"
3030
],
31-
"Advanced Topics (Windows)": [
31+
"Advanced Topics": [
3232
"win10-vm",
3333
"hermes",
3434
"NuGet"
@@ -40,7 +40,7 @@
4040
"Legacy Docs": [
4141
{
4242
"type": "subcategory",
43-
"label": "Native Modules (Windows)",
43+
"label": "Native Modules",
4444
"ids": [
4545
"native-modules",
4646
"view-managers",
@@ -54,7 +54,7 @@
5454
},
5555
{
5656
"type": "subcategory",
57-
"label": "Native Development (Windows)",
57+
"label": "Native Development",
5858
"ids": [
5959
"native-code",
6060
"native-code-language-choice",
@@ -69,18 +69,21 @@
6969
]
7070
},
7171
"apis": {
72-
"Components (Windows)": [
72+
"Components": [
7373
"flyout-component",
7474
"glyph-component",
7575
"popup-component",
7676
"textinput-component"
7777
],
78-
"JavaScript API (Windows)": [
78+
"JavaScript API": [
7979
"apptheme-api",
8080
"ikeyboardprops-api",
8181
"iviewwindowsprops-api"
8282
],
83-
"Native API (Windows)": [
83+
"New Architecture Property Support": [
84+
"new-arch-missingProps"
85+
],
86+
"Native API": [
8487
"native-api/Native-API-Reference",
8588
{
8689
"label": "Classes",

website/siteConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// See https://docusaurus.io/docs/site-config for all the possible
99
// site configuration options.
1010

11-
const defaultVersionShown = "0.79";
11+
const defaultVersionShown = "0.80";
1212
const repoUrl = "https://github.com/microsoft/react-native-windows";
1313

1414
const siteConfig = {
Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
---
2+
id: version-0.80-getting-started
3+
title: Get Started with Windows
4+
original_id: getting-started
5+
---
6+
7+
![Architecture](https://img.shields.io/badge/architecture-new_&_old-green)
8+
9+
This guide will help you get started on setting up your very first React Native for Windows app.
10+
11+
Make sure you have installed all of the [development dependencies](rnw-dependencies.md).
12+
13+
For information around how to set up React Native, see the [React Native Getting Started Guide](https://reactnative.dev/docs/getting-started).
14+
15+
> **Interested in migrating to [React Native's New Architecture](https://reactnative.dev/architecture/landing-page)?** 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](new-architecture.md).
16+
17+
## Create a new React Native project
18+
19+
Call the following from the place where you want your project directory to live:
20+
21+
<!-- Note, make sure both `@react-native-community/cli@ABC` and `--version "XYZ"` are pointing to the correct NPM tags in the command below. -->
22+
23+
<!-- 1. For the next version (i.e. in docs/getting-started.md) use "next" for the CLI and "nightly" for the RN version -->
24+
<!-- 2. For stable versions in versioned_docs use "latest" for the CLI and the semantic version, i.e. "^0.73.0" for the RN version -->
25+
26+
<!-- See https://www.npmjs.com/package/@react-native-community/cli?activeTab=versions for the CLI version tags. -->
27+
<!-- See https://www.npmjs.com/package/react-native?activeTab=versions for the RN version tags. -->
28+
29+
```bat
30+
npx --yes @react-native-community/cli@latest init <projectName> --version "^0.80.0"
31+
```
32+
33+
### Navigate into this newly created directory
34+
35+
The command will create your project in a new sub-directory, which you must enter before continuing:
36+
37+
```bat
38+
cd <projectName>
39+
```
40+
41+
### Add React Native Windows to your project's dependencies
42+
43+
<!-- Note, make sure "version" is pointing to the correct react-native-windows NPM tag in the command below. -->
44+
45+
<!-- 1. For the next version (i.e. in docs/getting-started.md) use "canary" -->
46+
<!-- 2. For other versions in versioned_docs use the version in the format "^0.XY.0" -->
47+
48+
Next you'll want to add `react-native-windows` as a dependency:
49+
50+
<!--DOCUSAURUS_CODE_TABS-->
51+
52+
<!--Using Yarn (Recommended)-->
53+
54+
```bat
55+
yarn add react-native-windows@^0.80.0
56+
```
57+
58+
<!--Using NPM-->
59+
60+
```bat
61+
npm install --save react-native-windows@^0.80.0
62+
```
63+
64+
<!--END_DOCUSAURUS_CODE_TABS-->
65+
66+
### Initialize the React Native Windows native code and projects
67+
68+
Lastly, initialize the React Native for Windows application with the [init-windows command](init-windows-cli.md):
69+
70+
```bat
71+
npx react-native init-windows --overwrite
72+
```
73+
74+
> **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.
75+
76+
## Running a React Native Windows App
77+
78+
> Make sure a browser is launched and running before running a React Native Windows app.
79+
> Also ensure your system meets all the [requirements](rnw-dependencies.md) to build a Windows app as well.
80+
81+
- Without Using Visual Studio
82+
83+
In your React Native Windows project directory, run the [run-windows command](run-windows-cli.md):
84+
85+
```bat
86+
npx react-native run-windows
87+
```
88+
89+
A new Command Prompt window will open with the React packager as well as your React Native for Windows app. This step may take a while during first run since it involves building the entire project and all dependencies. You can now start developing! :tada:
90+
91+
- Using Visual Studio
92+
93+
- From the root of the project directory, run the [autolink-windows command](autolink-windows-cli.md), which will automatically link your app's dependencies:
94+
```bat
95+
npx react-native autolink-windows
96+
```
97+
- Open the solution file in the application folder in Visual Studio (e.g., `AwesomeProject/windows/AwesomeProject.sln` if you used `AwesomeProject` as `<projectName>`)
98+
- Select the `Debug` configuration and the `x64` platform from the combo box controls to the left of the `Run` button and underneath the `Team` and `Tools` menu item.
99+
- Run `yarn start` (or `npm start`) from your project directory, and wait for the React Native packager to report success.
100+
- Click the `Run` button to the right of the platform combo box control in VS, or select the `Debug`->`Start without Debugging` menu item. You now see your new app and Chrome should have loaded `http://localhost:8081/debugger-ui/` in a new tab. Press `F12` or `Ctrl+Shift+I` in Chrome to open its Developer Tools. :tada:
101+
102+
- With VS Code
103+
- Open your applications folder in VS Code.
104+
- Install the [React Native Tools](https://marketplace.visualstudio.com/items?itemName=msjsdiag.vscode-react-native) plugin for VS Code.
105+
- Create a new file in the applications root directory, `.vscode/launch.json` and paste the following configuration:
106+
```json
107+
{
108+
"version": "0.2.0",
109+
"configurations": [
110+
{
111+
"name": "Debug Windows",
112+
"cwd": "${workspaceFolder}",
113+
"type": "reactnative",
114+
"request": "launch",
115+
"platform": "windows"
116+
}
117+
]
118+
}
119+
```
120+
- Press `F5` or navigate to the debug menu (alternatively press `Ctrl+Shift+D`) and in the Debug drop-down select "Debug Windows" and press the green arrow to run the application.
121+
122+
## Authoring Native Modules
123+
124+
See [Native Platform: Overview](native-platform.md).
125+
126+
## Building a standalone React Native Windows App
127+
128+
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.
129+
130+
- Open the solution in Visual Studio
131+
- Select the Release configuration from the Configuration Manager drop-down.
132+
- Build the solution. You can now launch without first launching Metro.
133+
- If you want to build an APPX package to share or publish, use the **Project** > **Publish** > **Create App Packages...** option.
134+
135+
> The Debug configuration uses the Web Debugger by default, which means the application's JavaScript code runs in Chrome.<br>
136+
> If you're getting different runtime behavior between the Release and Debug configurations, consider disabling the `UseWebDebugger` setting in [`App.cpp`](https://github.com/microsoft/react-native-windows/blob/6b415659aa017dbc41e3f28e817fb768a8e80435/vnext/template/cpp-app/src/App.cpp#L30) or [`App.xaml.cs`](https://github.com/microsoft/react-native-windows/blob/6b415659aa017dbc41e3f28e817fb768a8e80435/vnext/template/cs-app/src/App.xaml.cs#L20) to get the same behavior in the Debug configuration.
137+
138+
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#

0 commit comments

Comments
 (0)