Skip to content

Commit cb0487d

Browse files
committed
Revert "chore: don't set the new architecture by default for macOS yet (microsoft#2423)"
This reverts commit f2a6793.
1 parent 808b29d commit cb0487d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

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_returnFalse # [macOS] Disable Fabric by default till macOS supports it]
410+
def test_newArchEnabled_whenRCTNewArchEnabledIsNotSet_returnTrue
411411
ENV["RCT_NEW_ARCH_ENABLED"] = nil
412412
is_enabled = NewArchitectureHelper.new_arch_enabled
413-
assert_false(is_enabled)
413+
assert_true(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
@@ -188,6 +188,6 @@ def self.compute_new_arch_enabled(new_arch_enabled, react_native_version)
188188
end
189189

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

0 commit comments

Comments
 (0)