Skip to content

Commit 9842cc8

Browse files
Saadnajmitido64
andauthored
chore: set new architecture as the default (#2688)
## Summary: Revert #2423 in prep for the new architecture as the default for RNM 0.80+ --------- Co-authored-by: Tommy Nguyen <[email protected]>
1 parent 55cef4f commit 9842cc8

File tree

4 files changed

+402
-153
lines changed

4 files changed

+402
-153
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
@@ -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"] == '0' ? false : true
161161
end
162162
end

0 commit comments

Comments
 (0)