-
Notifications
You must be signed in to change notification settings - Fork 149
chore: set new architecture as the default #2688
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
microsoft#2423)" This reverts commit f2a6793.
@@ -157,6 +157,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"] == "1" # [macOS] Disable Fabric by default till macOS supports it | |||
return ENV["RCT_NEW_ARCH_ENABLED"] == nil || ENV["RCT_NEW_ARCH_ENABLED"] == "1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0.79-stable
seems to be using this instead (are we not yet caught up?):
return ENV["RCT_NEW_ARCH_ENABLED"] == nil || ENV["RCT_NEW_ARCH_ENABLED"] == "1" | |
return ENV["RCT_NEW_ARCH_ENABLED"] == '0' ? false : true |
Although strictly speaking, they should be using this:
return ENV["RCT_NEW_ARCH_ENABLED"] == nil || ENV["RCT_NEW_ARCH_ENABLED"] == "1" | |
return ENV["RCT_NEW_ARCH_ENABLED"] != '0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting. Maybe the same code path got updated in 0.79 after I did the first revert. I'll double check everything
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait... so then 0.79 probably shipped with new arch on by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's been enabled by default since 0.76: https://reactnative.dev/blog/2024/10/23/release-0.76-new-architecture#react-native-new-architecture-by-default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But not in RNM
|
||
PODFILE CHECKSUM: 07eddbe098f0e50aff590a91207f692788a9fe4c | ||
|
||
COCOAPODS: 1.16.2 | ||
COCOAPODS: 1.15.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this got downgraded?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.. for some reason my machine refuses to install. 1.16.2.
Summary:
Revert #2423 in prep for the new architecture as the default for RNM 0.80+