Skip to content

Commit 55f4c35

Browse files
CopilotvineethkuttanNitin Chaudhary
authored
Upgrade Website to 0.81 (#1123)
## Upgrade Website to 0.81 - COMPLETED ✅ Successfully upgraded the React Native Windows documentation website to version 0.81. This PR includes updates to Node.js and React Native CLI version requirements to align with 0.81 compatibility requirements (Node.js 22.x and React Native CLI 20.x), and sets complete support timeline dates for both 0.80 and 0.81 releases. ## Changes - **Version snapshot**: Created version-0.81 with current docs (getting-started, migration-guide, native-platform-getting-started, new-arch-missingProps) - **Configuration updates**: - versions.json: Added 0.81 at top - siteConfig.js: Set defaultVersionShown to "0.81" - support.js: Added complete support timeline for 0.81 (Released 12/19/2025, Active Support until 01/20/2026, End of Support TBD) and updated 0.80 support dates (Maintenance Support starts 11/29/2025, End of Support TBD) - **Version-0.81 docs**: Updated to use `@latest` CLI and `^0.81.0` package versions (changed from `@next`/`nightly`/`canary`) - **migration-guide.md**: - Updated prerequisites to Node.js ≥ 22.x and React Native CLI ≥ 20.x - Fixed spelling errors by restructuring sentence to avoid markdown-spellcheck parser issue - **docs/rnw-dependencies.md**: Updated Node.js LTS version from 18.18.0 to 22.14.0 in manual setup instructions - **.unbroken_exclusions**: Added 0.81 native-api exclusion - **.spelling**: Added 0.81 version ID patterns and version numbers (22.x, 20.x) Website builds successfully and spell check passes. ## Screenshots N/A - Documentation version upgrade only <!-- START COPILOT ORIGINAL PROMPT --> <details> <summary>Original prompt</summary> > > ---- > > *This section details on the original issue you should resolve* > > <issue_title>Upgrade Website to 0.81</issue_title> > <issue_description>Refer this https://github.com/microsoft/react-native-windows-samples/blob/main/website/README.md and these are the PR for previous releases. > > PR for 0.79: https://github.com/microsoft/react-native-windows-samples/pull/1042/files > PR for 0.80: https://github.com/microsoft/react-native-windows-samples/issues/1072/files > > Do similar changes for 0.81. > The commands for that would be: > > ## Cutting Documentation for a New React Native Windows Release > 1. Update necessary version references in [docs](../docs/). > 1. [`getting-started.md`](https://github.com/microsoft/react-native-windows-samples/blob/main/docs/getting-started.md) - make sure to update from "nightly" to "latest" and change the previous stable version from "latest" to "0.XX-stable" in react-native init. > 1. Follow the [Integration into the react-native-windows-samples-repo](https://github.com/microsoft/react-native-windows/wiki/API-documentation#integration-into-the-react-native-windows-samples-repo) steps to add the latest API documentation. > 1. If `win10-compat.md` has changed since the last version cut, copy contents of `docs/win10-compat.md`: > 1. The oldest version of `win10-compat.md` in versioned_docs should be replaced with the one from `docs`. Make sure to adjust the page id to match the older version. > 1. Confirm all other old versions of `win10-compat.md` should be deleted. > 1. Snapshot the website for version 0.XX: > 1. `cd website` > 1. `yarn run version 0.XX` > 1. `yarn run fix-unbroken` > > This will create a new directory of versioned docs, `version-0.XX`, in `website/versioned_docs`. This will preserve all documents currently in the `docs` directory and make them available as documentation for version 0.XX. For more information on versioning, click [here](https://v1.docusaurus.io/docs/en/versioning). > 1. Edit `website/.unbroken_exclusions` and add the line `!versioned_docs/version-0.XX/native-api/*-api-windows*.md` underneath the other versioned doc exclusions listed at the top of the file. > 1. Update `support.js` and add/update the entry for the new version of React Native Windows with the correct release and Active Support Start Date _X_ (ex: 6/27/22). Then make sure to edit the previous version's: > 1. Maintenance Start Date (set to the last day of the month that's 1 month out from _X_, ex: 7/31/22) > 2. End of Support Date (set to the last day of the month that's 2 months out from _X_, ex: 9/30/22) > 1. When you are ready for your new docs to be the default documentation on the website, edit `website/siteConfig.js` to point to 0.XX for its `defaultVersionShown` constant. > > Once all changes are done, run " `npx markdown-spellcheck "website/versioned_docs//*.md" "!website/versioned_docs//-api-windows.md" --en-us --ignore-acronyms --ignore-numbers --report --color` > " > > and add all the spelling errors to .spelling file</issue_description> > > <agent_instructions>Look into the description and create a website for 0.81</agent_instructions> > > ## Comments on the Issue (you are @copilot in this section) > > <comments> > </comments> > </details> <!-- START COPILOT CODING AGENT SUFFIX --> - Fixes #1122 <!-- START COPILOT CODING AGENT TIPS --> --- ✨ Let Copilot coding agent [set things up for you](https://github.com/microsoft/react-native-windows-samples/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot) — coding agent works faster and does higher quality work when set up for your repo. ###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/microsoft/react-native-windows-samples/pull/1123) --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: vineethkuttan <66076509+vineethkuttan@users.noreply.github.com> Co-authored-by: Nitin Chaudhary <nitchaudhary@microsoft.com>
1 parent 473b7a5 commit 55f4c35

File tree

12 files changed

+817
-59
lines changed

12 files changed

+817
-59
lines changed

.spelling

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ JSValue
5151
KeyEvents
5252
Kotlin
5353
lifecycle
54+
lt
5455
macOS
5556
middleware
5657
monorepos
@@ -126,6 +127,7 @@ WinUI
126127
WinUI3
127128
Xcode
128129
80-native-platform-getting-started
130+
81-native-platform-getting-started
129131
sidebar_label
130132
original_id
131133
workstream
@@ -148,7 +150,10 @@ anupriya13
148150
JS/TSX
149151
migration-guide
150152
version-0.80-migration-guide
153+
version-0.81-migration-guide
151154
WinAppSDK
155+
22.x
156+
20.x
152157
18.x
153158
13.x
154159
v17.10
@@ -169,5 +174,6 @@ e.g.numeric
169174
ascii-capable
170175
url
171176
VSCode
177+
v0.81
172178
v0.80
173179
v0.74

docs/new-arch-missingProps.md

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -23,30 +23,6 @@ Sets the transparency of the view.
2323
|:--|:--|
2424
| number | No |
2525

26-
### `snapToInterval`
27-
28-
When set, causes the scroll view to stop at multiples of the value of snapToInterval. This can be used for paginating through children that have lengths smaller than the scroll view. Typically used in combination with snapToAlignment and decelerationRate="fast". Overrides less configurable pagingEnabled prop.
29-
30-
| type | required |
31-
|:--|:--|
32-
| number | No |
33-
34-
### `snapToAlignment`
35-
36-
When snapToInterval is set, snapToAlignment will define the relationship of the snapping to the scroll view.
37-
38-
| type | required |
39-
|:--|:--|
40-
| enum('start', 'center', 'end') | No |
41-
42-
### `pagingEnabled`
43-
44-
When true, the scroll view stops on multiples of the scroll view's size when scrolling. This can be used for horizontal pagination.
45-
46-
| type | default |
47-
|:--|:--|
48-
| bool | false |
49-
5026
### `selectable`
5127

5228
Lets the user select text, to use the native copy and paste functionality.
@@ -63,36 +39,6 @@ The highlight color of the text.
6339
|:--|:--|
6440
| color | No |
6541

66-
### `textAlign`
67-
68-
Align the input text to the left, center, or right sides of the input field.
69-
70-
Possible values for textAlign are:
71-
72-
- left
73-
- center
74-
- right
75-
76-
| type | required |
77-
|:--|:--|
78-
| enum('left', 'center', 'right') | No |
79-
80-
### `contextMenuHidden`
81-
82-
If true, context menu is hidden. The default value is false.
83-
84-
| type | required |
85-
|:--|:--|
86-
| bool | No |
87-
88-
### `writingDirection`
89-
90-
The writing direction of the text.
91-
92-
| type | required |
93-
|:--|:--|
94-
| enum('auto', 'ltr', 'rtl') | No |
95-
9642
### `keyboardType`
9743

9844
Determines which keyboard to open, e.g.numeric

docs/rnw-dependencies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Alternatively, you can setup your environment manually:
5353
Options to install [Node.js](https://nodejs.org) separately:
5454
- Using [WinGet](https://aka.ms/winget) (_React Native recommended_). To use WinGet, from an elevated Command Prompt, run:
5555
```bat
56-
winget install OpenJS.NodeJS.LTS --version 18.18.0
56+
winget install OpenJS.NodeJS.LTS --version 22.14.0
5757
```
5858
- Using [another package manager](https://nodejs.org/en/download/package-manager/) such as [Scoop](https://scoop.sh/) or [Node Version Switcher (nvs)](https://github.com/jasongin/nvs)
5959
- Directly from [Node.js](https://nodejs.org/en/download)

website/.unbroken_exclusions

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
!versioned_docs/version-0.78/native-api/*-api-windows*.md
2020
!versioned_docs/version-0.79/native-api/*-api-windows*.md
2121
!versioned_docs/version-0.80/native-api/*-api-windows*.md
22+
!versioned_docs/version-0.81/native-api/*-api-windows*.md
2223

2324
# See Issue 410
2425
File not found IReactContext while parsing versioned_docs/version-0.64/native-modules-advanced.md
@@ -39,6 +40,20 @@ URL not found https://www.npmjs.com/package/react-native-macos while parsing ver
3940
URL not found https://www.npmjs.com/package/react-native-windows while parsing versioned_docs/version-0.80/new-architecture.md (HTTP 403)
4041

4142
#fix-unbroken.js auto-generated do not edit this line or below
43+
File not found getting-started.md while parsing versioned_docs/version-0.81/getting-started.md
44+
File not found init-windows-cli.md while parsing versioned_docs/version-0.81/getting-started.md
45+
File not found new-architecture.md while parsing versioned_docs/version-0.81/getting-started.md
46+
File not found autolink-windows-cli.md while parsing versioned_docs/version-0.81/getting-started.md
47+
File not found native-platform.md while parsing versioned_docs/version-0.81/getting-started.md
48+
File not found platform.md while parsing versioned_docs/version-0.81/getting-started.md
49+
File not found rnw-dependencies.md while parsing versioned_docs/version-0.81/getting-started.md
50+
File not found run-windows-cli.md while parsing versioned_docs/version-0.81/getting-started.md
51+
File not found getting-started.md while parsing versioned_docs/version-0.81/native-platform-getting-started.md
52+
File not found init-windows-cli.md while parsing versioned_docs/version-0.81/native-platform-getting-started.md
53+
File not found native-platform-components.md while parsing versioned_docs/version-0.81/native-platform-getting-started.md
54+
File not found native-platform-modules.md while parsing versioned_docs/version-0.81/native-platform-getting-started.md
55+
File not found rnw-dependencies.md while parsing versioned_docs/version-0.81/native-platform-getting-started.md
56+
File not found run-windows-cli.md while parsing versioned_docs/version-0.81/native-platform-getting-started.md
4257
File not found new-architecture.md while parsing versioned_docs/version-0.80/flyout-component-windows.md
4358
File not found autolink-windows-cli.md while parsing versioned_docs/version-0.80/getting-started.md
4459
File not found getting-started.md while parsing versioned_docs/version-0.80/getting-started.md

website/pages/en/support.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ 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.80](https://www.npmjs.com/package/react-native-windows/v/latest) | [Active](#active-support) | 10/28/2025 | 10/28/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 | 11/30/2025 | 01/31/2026 |
17+
| [0.81](https://www.npmjs.com/package/react-native-windows/v/latest) | [Active](#active-support) | 12/19/2025 | 12/19/2025 | *TBD* | *TBD* |
18+
| [0.80](https://www.npmjs.com/package/react-native-windows/v/v0.80-stable) | [Active](#active-support) | 10/28/2025 | 10/28/2025 | 01/20/2025 | 03/20/2026 |
19+
| [0.79](https://www.npmjs.com/package/react-native-windows/v/v0.79-stable) | [Maintenance](#maintenance-support) | 06/17/2025 | 06/17/2025 | 11/30/2025 | 01/31/2026 |
1920
| [0.78](https://www.npmjs.com/package/react-native-windows/v/v0.78-stable) | [Unsupported](#unsupported) | 02/27/2025 | 02/27/2025 | 07/31/2025 | 09/30/2025 |
20-
| [0.77](https://www.npmjs.com/package/react-native-windows/v/v0.77-stable) | [Unsupported](#unsupported) | 01/24/2025 | 01/24/2025 | 03/30/2025 | 05/31/2025 |
2121
2222
<!--
2323
// 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.77](https://www.npmjs.com/package/react-native-windows/v/v0.77-stable) | [Unsupported](#unsupported) | 01/24/2025 | 01/24/2025 | 03/30/2025 | 05/31/2025 |
2425
| [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 |
2526
| [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 |
2627
| [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 |

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.80";
11+
const defaultVersionShown = "0.81";
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.81-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+
## Create a new React Native project
16+
17+
Call the following from the place where you want your project directory to live:
18+
19+
<!-- Note, make sure both `@react-native-community/cli@ABC` and `--version XYZ` are pointing to the correct NPM tags in the command below. -->
20+
21+
<!-- 1. For the next version (i.e. in docs/getting-started.md) use `next` for the CLI and `nightly` for the RN version -->
22+
<!-- 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 -->
23+
24+
<!-- See https://www.npmjs.com/package/@react-native-community/cli?activeTab=versions for the CLI version tags. -->
25+
<!-- See https://www.npmjs.com/package/react-native?activeTab=versions for the RN version tags. -->
26+
27+
```bat
28+
npx --yes @react-native-community/cli@latest init <projectName> --version "^0.81.0"
29+
```
30+
31+
### Navigate into this newly created directory
32+
33+
The command will create your project in a new sub-directory, which you must enter before continuing:
34+
35+
```bat
36+
cd <projectName>
37+
```
38+
39+
### Add React Native Windows to your project's dependencies
40+
41+
<!-- Note, make sure `version` is pointing to the correct react-native-windows NPM tag in the command below. -->
42+
43+
<!-- 1. For the next version (i.e. in docs/getting-started.md) use `canary` -->
44+
<!-- 2. For other versions in versioned_docs use the version in the format `^0.XY.0` -->
45+
46+
Next you'll want to add `react-native-windows` as a dependency:
47+
48+
<!--DOCUSAURUS_CODE_TABS-->
49+
50+
<!--Using Yarn (Recommended)-->
51+
52+
```bat
53+
yarn add react-native-windows@^0.81.0
54+
```
55+
56+
<!--Using NPM-->
57+
58+
```bat
59+
npm install --save react-native-windows@^0.81.0
60+
```
61+
62+
<!--END_DOCUSAURUS_CODE_TABS-->
63+
64+
### Initialize the React Native Windows native code and projects
65+
66+
Lastly, initialize the React Native for Windows application with the [init-windows command](init-windows-cli.md):
67+
68+
```bat
69+
npx react-native init-windows --overwrite
70+
```
71+
72+
> **Architecture Note:** The default React Native for Windows template for *new* projects targets [React Native's New Architecture](https://reactnative.dev/architecture/landing-page). For more information, including options for continuing to use the Old Architecture, see [New vs. Old Architecture](new-architecture.md).
73+
74+
> **Metro Note:** React Native Windows overwrites the app project's `metro.config.js` file to enable Windows support. If you are starting a new project, overwriting React Native's default `metro.config.js` should have no impact. However, if you have previously modified your `metro.config.js` file, please make sure to back up and re-apply your modifications after adding React Native Windows.
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)