Skip to content

Commit 270f785

Browse files
authored
Revert "Change init-windows default new app template to New Architecture" (#14985)
* Revert "Change `init-windows` default new app template to New Architecture (#…" This reverts commit 1d04e27. * Change files
1 parent 7d3546f commit 270f785

File tree

6 files changed

+18
-5
lines changed

6 files changed

+18
-5
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "prerelease",
3+
"comment": "Revert \"Change `init-windows` default new app template to New Architecture (#…\"",
4+
"packageName": "@react-native-windows/cli",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "prerelease",
3+
"comment": "Revert \"Change `init-windows` default new app template to New Architecture (#…\"",
4+
"packageName": "react-native-windows",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}

packages/@react-native-windows/cli/src/commands/initWindows/initWindowsOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const initOptions: CommandOption[] = [
2424
{
2525
name: '--template [string]',
2626
description: 'Specify the template to use',
27-
default: 'cpp-app',
27+
default: undefined,
2828
},
2929
{
3030
name: '--name [string]',

vnext/templates/cpp-app/template.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,8 @@ async function postInstall(config = {}, options = {}) {
144144
module.exports = {
145145
name: 'React Native Windows Application (New Arch, WinAppSDK, C++)',
146146
description:
147-
"A RNW app using RN's New Architecture, built in C++ and targeting WinAppSDK.",
147+
"[Preview] A RNW app using RN's New Architecture, built in C++ and targeting WinAppSDK.",
148148
preInstall,
149149
getFileMappings,
150150
postInstall,
151-
isDefault: true,
152151
};

vnext/templates/old/generateWrapper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function makeGenerateWindowsWrapper(language = 'cpp', isDefault = false) {
1313
const name = `React Native Windows Application (Old Arch, UWP, ${
1414
language === 'cs' ? 'C#' : 'C++'
1515
})`;
16-
const description = `[Legacy] A RNW app using RN's Old Architecture, built in ${
16+
const description = `A RNW app using RN's Old Architecture, built in ${
1717
language === 'cs' ? 'C#' : 'C++'
1818
} and targeting UWP.`;
1919

vnext/templates/old/uwp-cpp-app/template.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212

1313
const {makeGenerateWindowsWrapper} = require('../generateWrapper');
1414

15-
module.exports = makeGenerateWindowsWrapper('cpp');
15+
module.exports = makeGenerateWindowsWrapper('cpp', true); // TODO: Remove this as the default

0 commit comments

Comments
 (0)