You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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#14985Resolves#1084
## Screenshots
Add any relevant screen captures here from before or after your changes.
Copy file name to clipboardExpand all lines: docs/app-publishing.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ These are the steps to follow if you are looking to publish a React Native Windo
24
24
- Pricing and Availability ([Set app pricing and availability - UWP applications | Microsoft Docs](https://docs.microsoft.com/windows/uwp/publish/set-app-pricing-and-availability))
- 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))
|`--template`| string | Specify the template to use (default: `old/uwp-cpp-app`) |
28
+
|`--template`| string | Specify the template to use (default: `cpp-app`) |
29
29
|`--name`| string | The native project name. Defaults to the name property in `app.json` or `package.json`|
30
30
|`--namespace`| string | The native project namespace, expressed using dots as separators, i.e. `Level1.Level2.Level3`. Defaults to the same as name |
31
31
|`--overwrite`| boolean | Overwrite any existing files without prompting |
@@ -42,12 +42,12 @@ After running, the `init-windows` command will save the `name`, `namespace` and
42
42
"init-windows": {
43
43
"name": "MyApp",
44
44
"namespace": "MyApp",
45
-
"template": "old/uwp-cpp-app"
45
+
"template": "cpp-app"
46
46
}
47
47
}
48
48
```
49
49
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).
51
51
52
52
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`.
53
53
@@ -57,12 +57,12 @@ The following templates are available to `init-windows` and can by manually spec
57
57
58
58
| Template | Name | Description |
59
59
|:-:|:--|:--|
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 |
61
61
|`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 |
64
64
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).
Copy file name to clipboardExpand all lines: docs/new-architecture.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ title: New vs. Old Architecture
7
7
8
8
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).
9
9
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).
11
11
12
12
> **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.
13
13
@@ -51,7 +51,7 @@ This change makes it easier for React Native for Windows to implement expected b
51
51
52
52
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).
53
53
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.
55
55
56
56
> **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.
Copy file name to clipboardExpand all lines: website/versioned_docs/version-0.67/app-publishing.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ These are the steps to follow if you are looking to publish a React Native Windo
21
21
- Pricing and Availability ([Set app pricing and availability - UWP applications | Microsoft Docs](https://docs.microsoft.com/windows/uwp/publish/set-app-pricing-and-availability))
- 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))
Copy file name to clipboardExpand all lines: website/versioned_docs/version-0.79/app-publishing.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ These are the steps to follow if you are looking to publish a React Native Windo
25
25
- Pricing and Availability ([Set app pricing and availability - UWP applications | Microsoft Docs](https://docs.microsoft.com/windows/uwp/publish/set-app-pricing-and-availability))
- 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))
0 commit comments