Skip to content

Commit 86ca0d4

Browse files
authored
Revert and Reapply PRs with respect to fabric default in 0.80 (#1085)
## Description ### Why What is the motivation for this change? Add a few sentences describing the context and overall goals of the pull request's commits. Need to fix some PRs we reverted for fabric 0.80 default Revert #1069 Re-apply microsoft/react-native-windows#14985 Resolves #1084 ## Screenshots Add any relevant screen captures here from before or after your changes.
1 parent 38c8766 commit 86ca0d4

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

docs/app-publishing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ These are the steps to follow if you are looking to publish a React Native Windo
2424
- Pricing and Availability ([Set app pricing and availability - UWP applications | Microsoft Docs](https://docs.microsoft.com/windows/uwp/publish/set-app-pricing-and-availability))
2525
- Properties ([Enter app properties - UWP applications | Microsoft Docs](https://docs.microsoft.com/windows/uwp/publish/enter-app-properties))
2626
- Age Ratings ([Age ratings - UWP applications | Microsoft Docs](https://docs.microsoft.com/windows/uwp/publish/age-ratings))
27-
- Store Listings ([Create app Store listings - UWP applications | Microsoft Docs](https://docs.microsoft.com/windows/uwp/publish/create-app-store-listings))
27+
- Store Listings ([Create app Store listings - UWP applications | Microsoft Docs](https://learn.microsoft.com/en-us/windows/apps/publish))
2828
- Submission Options ([Manage submission options - UWP applications | Microsoft Docs](https://docs.microsoft.com/windows/uwp/publish/manage-submission-options))
2929

3030
11. Under the packages section you will be asked to upload your `.appxupload`. Make sure that your `.appxupload`

docs/init-windows-cli.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Here are the options that `react-native init-windows` takes:
2525
| Option | Input Type | Description |
2626
|-----------------------|------------|--------------------------------------------------|
2727
| `--logging` | boolean | Verbose output logging |
28-
| `--template` | string | Specify the template to use (default: `old/uwp-cpp-app`) |
28+
| `--template` | string | Specify the template to use (default: `cpp-app`) |
2929
| `--name` | string | The native project name. Defaults to the name property in `app.json` or `package.json` |
3030
| `--namespace` | string | The native project namespace, expressed using dots as separators, i.e. `Level1.Level2.Level3`. Defaults to the same as name |
3131
| `--overwrite` | boolean | Overwrite any existing files without prompting |
@@ -42,12 +42,12 @@ After running, the `init-windows` command will save the `name`, `namespace` and
4242
"init-windows": {
4343
"name": "MyApp",
4444
"namespace": "MyApp",
45-
"template": "old/uwp-cpp-app"
45+
"template": "cpp-app"
4646
}
4747
}
4848
```
4949

50-
If you later repeat the `init-windows` command to re-initialize a Windows project, without specifying any of those options, the command will default to any saved values. Among other things, this means you can safely re-run `init-windows` without it automatically changing your project to a different template.
50+
If you later repeat the `init-windows` command to re-initialize a Windows project, without specifying any of those options, the command will default to any saved values. Among other things, this means you can safely re-run `init-windows` without it automatically changing your project to a different template (i.e. if your project is an Old Architecture app, `init-windows` won't force you to migrate to the New Architecture).
5151

5252
If you *want* to change the value (say, you *do* want to migrate to a new template) just explicitly (re-)specify the option when running `init-windows`.
5353

@@ -57,12 +57,12 @@ The following templates are available to `init-windows` and can by manually spec
5757

5858
| Template | Name | Description |
5959
|:-:|:--|:--|
60-
| `cpp-app` | React Native Windows Application (New Arch, WinAppSDK, C++) | A RNW app using RN's New Architecture, built in C++ and targeting WinAppSDK |
60+
| `cpp-app` | React Native Windows Application (New Arch, WinAppSDK, C++) | `[Default]` A RNW app using RN's New Architecture, built in C++ and targeting WinAppSDK |
6161
| `cpp-lib` | React Native Windows Library (C++) | A RNW (Turbo) Native Module supporting RN's New and Old Architectures built in C++ |
62-
| `old/uwp-cpp-app` | React Native Windows Application (Old Arch, UWP, C++) | A RNW app using RN's Old Architecture, built in C++ and targeting UWP |
63-
| `old/uwp-cs-app` | React Native Windows Application (Old Arch, UWP, C#) | A RNW app using RN's Old Architecture, built in C# and targeting UWP |
62+
| `old/uwp-cpp-app` | React Native Windows Application (Old Arch, UWP, C++) | `[Legacy]` A RNW app using RN's Old Architecture, built in C++ and targeting UWP |
63+
| `old/uwp-cs-app` | React Native Windows Application (Old Arch, UWP, C#) | `[Legacy]` A RNW app using RN's Old Architecture, built in C# and targeting UWP |
6464

65-
> **Architecture Note:** When initializing React Native for Windows for the first time, the `init-windows` CLI command defaults to the `old/uwp-cpp-app` template, which targets React Native's Old Architecture. For more information, see [New vs. Old Architecture](new-architecture.md).
65+
> **Architecture Note:** When initializing React Native for Windows for the first time, the `init-windows` CLI command defaults to the `cpp-app` template, which targets [React Native's New Architecture](https://reactnative.dev/architecture/landing-page). For more information, see [New vs. Old Architecture](new-architecture.md).
6666
6767
## Telemetry Notice
6868

docs/new-architecture.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: New vs. Old Architecture
77

88
React Native's [New Architecture](https://reactnative.dev/architecture/landing-page) brings many framework improvements including the advanced [Fabric](https://reactnative.dev/architecture/fabric-renderer) rendering system. It greatly improves the speed and responsiveness of React Native apps over the previous *Legacy* or *Old Architecture* and its *Paper* renderer. The New Architecture was enabled by default for the *iOS* and *Android* platforms in [react-native@0.76.0](https://reactnative.dev/blog/2024/10/23/the-new-architecture-is-here).
99

10-
React Native for Windows also supports the New Architecture for the *Windows* platform. It was first available as an opt-in preview in [react-native-windows@0.76.0](https://devblogs.microsoft.com/react-native/2025-01-29-new-architecture-on-0-76-0-77/). For more information on the differences between the architectures on Windows, see [New vs. Old Architecture Differences](#new-vs-old-architecture-differences).
10+
React Native for Windows also supports the New Architecture for the *Windows* platform. It was first available as an opt-in preview in [react-native-windows@0.76.0](https://devblogs.microsoft.com/react-native/2025-01-29-new-architecture-on-0-76-0-77/) and became the default for *new* app projects in `react-native-windows@0.80.0`. For more information on the differences between the architectures on Windows, see [New vs. Old Architecture Differences](#new-vs-old-architecture-differences).
1111

1212
> **Important:** Nearly all future investments to React Native (and React Native for Windows) will be toward the New Architecture, and we highly recommend that all projects migrate as soon as possible. React Native (and therefore React Native for Windows) will eventually deprecate, then delete, support for the Old Architecture.
1313
@@ -51,7 +51,7 @@ This change makes it easier for React Native for Windows to implement expected b
5151

5252
Developers choose the React Native Architecture (New or Old) for their Windows application when (re-)initializing Windows platform support for their project. This choice is determined by the `--template` argument when running the [init-windows command](init-windows-cli.md).
5353

54-
If you re-run `init-windows` on a project without specifying a template, the command will default to the previously used template. See [Default Options and Re-initializing Projects](init-windows-cli.md#default-options-and-re-initializing-projects) for more details.
54+
Starting with `react-native-windows@0.80.0`, calling `init-windows` for the *first time* in an application project (as seen in the [Getting Started](getting-started.md) guide) will default to using the New Architecture template if none is specified. If you re-run `init-windows` on a project without specifying a template, the command will default to the previously used template. See [Default Options and Re-initializing Projects](init-windows-cli.md#default-options-and-re-initializing-projects) for more details.
5555

5656
> **Note:** The choice described here only applies for your project's Windows build and is independent of the choice you make for other React Native platforms, i.e. your Android and iOS builds can target a different architecture than your Windows build.
5757

website/versioned_docs/version-0.67/app-publishing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ These are the steps to follow if you are looking to publish a React Native Windo
2121
- Pricing and Availability ([Set app pricing and availability - UWP applications | Microsoft Docs](https://docs.microsoft.com/windows/uwp/publish/set-app-pricing-and-availability))
2222
- Properties ([Enter app properties - UWP applications | Microsoft Docs](https://docs.microsoft.com/windows/uwp/publish/enter-app-properties))
2323
- Age Ratings ([Age ratings - UWP applications | Microsoft Docs](https://docs.microsoft.com/windows/uwp/publish/age-ratings))
24-
- Store Listings ([Create app Store listings - UWP applications | Microsoft Docs](https://docs.microsoft.com/windows/uwp/publish/create-app-store-listings))
24+
- Store Listings ([Create app Store listings - UWP applications | Microsoft Docs](https://learn.microsoft.com/en-us/windows/apps/publish))
2525
- Submission Options ([Manage submission options - UWP applications | Microsoft Docs](https://docs.microsoft.com/windows/uwp/publish/manage-submission-options))
2626

2727
11. Under the packages section you will be asked to upload your `.appxupload`. Make sure that your `.appxupload`

website/versioned_docs/version-0.79/app-publishing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ These are the steps to follow if you are looking to publish a React Native Windo
2525
- Pricing and Availability ([Set app pricing and availability - UWP applications | Microsoft Docs](https://docs.microsoft.com/windows/uwp/publish/set-app-pricing-and-availability))
2626
- Properties ([Enter app properties - UWP applications | Microsoft Docs](https://docs.microsoft.com/windows/uwp/publish/enter-app-properties))
2727
- Age Ratings ([Age ratings - UWP applications | Microsoft Docs](https://docs.microsoft.com/windows/uwp/publish/age-ratings))
28-
- Store Listings ([Create app Store listings - UWP applications | Microsoft Docs](https://docs.microsoft.com/windows/uwp/publish/create-app-store-listings))
28+
- Store Listings ([Create app Store listings - UWP applications | Microsoft Docs](https://learn.microsoft.com/en-us/windows/apps/publish))
2929
- Submission Options ([Manage submission options - UWP applications | Microsoft Docs](https://docs.microsoft.com/windows/uwp/publish/manage-submission-options))
3030

3131
11. Under the packages section you will be asked to upload your `.appxupload`. Make sure that your `.appxupload`

0 commit comments

Comments
 (0)