Skip to content

Commit 88195ef

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

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
@@ -249,10 +249,10 @@ def test_newArchEnabled_whenRCTNewArchEnabledIsSetTo0_returnFalse
249249
assert_false(is_enabled)
250250
end
251251

252-
def test_newArchEnabled_whenRCTNewArchEnabledIsNotSet_returnFalse # [macOS] Disable Fabric by default till macOS supports it]
252+
def test_newArchEnabled_whenRCTNewArchEnabledIsNotSet_returnTrue
253253
ENV["RCT_NEW_ARCH_ENABLED"] = nil
254254
is_enabled = NewArchitectureHelper.new_arch_enabled
255-
assert_false(is_enabled)
255+
assert_true(is_enabled)
256256
end
257257

258258

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,6 @@ def self.extract_react_native_version(react_native_path, file_manager: File, jso
157157
end
158158

159159
def self.new_arch_enabled
160-
return ENV["RCT_NEW_ARCH_ENABLED"] == "1" # [macOS] Disable Fabric by default till macOS supports it
160+
return ENV["RCT_NEW_ARCH_ENABLED"] == nil || ENV["RCT_NEW_ARCH_ENABLED"] == "1"
161161
end
162162
end

0 commit comments

Comments
 (0)