Skip to content

Commit 5f34242

Browse files
authored
chore(0.77): don't set the new architecture by default for macOS yet (#2424)
## Summary: Backport of #2423 This reverts commit b9f3186. The new architecture isn't ready on macOS yet. Specifically, the Fabric renderer isn't ready. This is causing issue for new projects off the macOS template. Let's disable it until we're ready. ## Test Plan: CI should pass
1 parent b45f1d4 commit 5f34242

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/react-native/scripts/cocoapods/__tests__/new_architecture-test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,10 +407,10 @@ def test_newArchEnabled_whenRCTNewArchEnabledIsSetTo0_returnFalse
407407
assert_false(is_enabled)
408408
end
409409

410-
def test_newArchEnabled_whenRCTNewArchEnabledIsNotSet_returnTrue
410+
def test_newArchEnabled_whenRCTNewArchEnabledIsNotSet_returnFalse # [macOS] Disable Fabric by default till macOS supports it]
411411
ENV["RCT_NEW_ARCH_ENABLED"] = nil
412412
is_enabled = NewArchitectureHelper.new_arch_enabled
413-
assert_true(is_enabled)
413+
assert_false(is_enabled)
414414
end
415415

416416

packages/react-native/scripts/cocoapods/new_architecture.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,6 @@ def self.compute_new_arch_enabled(new_arch_enabled, react_native_version)
189189
end
190190

191191
def self.new_arch_enabled
192-
return ENV["RCT_NEW_ARCH_ENABLED"] == nil || ENV["RCT_NEW_ARCH_ENABLED"] == "1"
192+
return ENV["RCT_NEW_ARCH_ENABLED"] == "1" # [macOS] Disable Fabric by default till macOS supports it
193193
end
194194
end

0 commit comments

Comments
 (0)