Skip to content

Commit

Permalink
fix(windows): use new property when enabling New Arch (#2337)
Browse files Browse the repository at this point in the history
  • Loading branch information
tido64 authored Dec 6, 2024
1 parent 4fd0bcb commit 15816f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions windows/ExperimentalFeatures.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
See https://reactnative.dev/docs/new-architecture-intro
-->
<RnwNewArch>false</RnwNewArch>
<UseFabric>false</UseFabric>

<!--
Expand Down
1 change: 1 addition & 0 deletions windows/test-app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ export function generateSolution(destPath, options, fs = nodefs) {
const { useExperimentalNuGet, useFabric, versionNumber } = info;
const url = new URL(experimentalFeaturesPropsFilename, import.meta.url);
copyAndReplaceAsync(fileURLToPath(url), experimentalFeaturesPropsPath, {
"<RnwNewArch>false</RnwNewArch>": `<RnwNewArch>${useFabric}</RnwNewArch>`,
"<UseFabric>false</UseFabric>": `<UseFabric>${useFabric}</UseFabric>`,
"<UseHermes>true</UseHermes>": `<UseHermes>${useHermes == null ? versionNumber >= v(0, 73, 0) : useHermes}</UseHermes>`,
"<UseWinUI3>false</UseWinUI3>": `<UseWinUI3>${useFabric}</UseWinUI3>`,
Expand Down

0 comments on commit 15816f6

Please sign in to comment.