Skip to content

Commit 22eab47

Browse files
authored
fix(windows): enable New Arch by default from 0.80 onwards (#2598)
1 parent a099f9b commit 22eab47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

windows/project.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
readJSONFile,
1313
readTextFile,
1414
toVersionNumber,
15+
v,
1516
} from "../scripts/helpers.js";
1617
import * as colors from "../scripts/utils/colors.mjs";
1718

@@ -413,7 +414,7 @@ export async function projectInfo(
413414
) {
414415
const version = getPackageVersion("react-native-windows", rnWindowsPath, fs);
415416
const versionNumber = toVersionNumber(version);
416-
const newArch = Boolean(useFabric);
417+
const newArch = useFabric ?? versionNumber >= v(0, 80, 0);
417418

418419
return {
419420
version,

0 commit comments

Comments
 (0)