Skip to content

Commit

Permalink
Re-enable the New Architecture by default (#48755)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #48755

When [cleaning up the pre-alpha flags](9a4b2ce), we disabled the new architecture by default by mistake.

This change fixes that.

## Changelog:
[Internal] - Restore the New Arch by default

Reviewed By: GijsWeterings

Differential Revision: D68323159

fbshipit-source-id: cae96fc7c50319808e0afecf46ebf927e4db254a
  • Loading branch information
cipolleschi authored and facebook-github-bot committed Jan 17, 2025
1 parent a7aed70 commit eced906
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,6 @@ def self.extract_react_native_version(react_native_path, file_manager: File, jso
end

def self.new_arch_enabled
return ENV["RCT_NEW_ARCH_ENABLED"] == nil || ENV["RCT_NEW_ARCH_ENABLED"] == "1"
return ENV["RCT_NEW_ARCH_ENABLED"] == 0 ? false : true
end
end
2 changes: 2 additions & 0 deletions packages/react-native/scripts/react_native_pods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ def use_react_native! (

ReactNativePodsUtils.warn_if_not_on_arm64()

Pod::UI.puts "Configuring the target with the #{new_arch_enabled ? "New" : "Legacy"} Architecture\n"

# The Pods which should be included in all projects
pod 'FBLazyVector', :path => "#{prefix}/Libraries/FBLazyVector"
pod 'RCTRequired', :path => "#{prefix}/Libraries/Required"
Expand Down

0 comments on commit eced906

Please sign in to comment.