-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Set RCT_NEW_ARCH_ENABLED to true when using cocoapod flag #34670
Conversation
This pull request was exported from Phabricator. Differential Revision: D39430904 |
1 similar comment
This pull request was exported from Phabricator. Differential Revision: D39430904 |
…4670) Summary: Pull Request resolved: facebook#34670 Users can enable the New Architecture on iOS in two way: using the `RCT_NEW_ACRH_ENABLED` env variable or setting the `new_arch_enabled` flag when invoking the `use_react_native` function. We need to set the `RCT_NEW_ACRH_ENABLED` even when the other method is used because we need to inject that flag into the codebase. ## Changelog [iOS][Fixed] Make sure to turn on the `RCT_NEW_ACRH_ENABLED` flag Differential Revision: D39430904 fbshipit-source-id: c637b965f97afdf5d7da7f53c9cc56aa9e4e2d69
3471e44
to
df625cf
Compare
…4670) Summary: Pull Request resolved: facebook#34670 Users can enable the New Architecture on iOS in two way: using the `RCT_NEW_ACRH_ENABLED` env variable or setting the `new_arch_enabled` flag when invoking the `use_react_native` function. We need to set the `RCT_NEW_ACRH_ENABLED` even when the other method is used because we need to inject that flag into the codebase. ## Changelog [iOS][Fixed] Make sure to turn on the `RCT_NEW_ACRH_ENABLED` flag Differential Revision: D39430904 fbshipit-source-id: 8e8254b66846a8f93d108632a2236b42e1a91ae0
df625cf
to
2f27bd6
Compare
This pull request was exported from Phabricator. Differential Revision: D39430904 |
@@ -46,6 +46,9 @@ def use_react_native! ( | |||
|
|||
CodegenUtils.clean_up_build_folder(app_path, $CODEGEN_OUTPUT_DIR) | |||
|
|||
# We are relying on this flag also in third parties libraries to proper install dependencies. | |||
# Better to rely and enable this environment flag if the new architecture is turned on using flags. | |||
ENV['RCT_NEW_ARCH_ENABLED'] = new_arch_enabled ? "1" : "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.
I'm seeing we use single quotes when there are no string interpolations.
It's okay if it doesn't work when we use single quotes here.
This pull request was successfully merged by @cipolleschi in f31134a. When will my fix make it into a release? | Upcoming Releases |
…4670) Summary: Pull Request resolved: facebook#34670 Users can enable the New Architecture on iOS in two way: using the `RCT_NEW_ACRH_ENABLED` env variable or setting the `new_arch_enabled` flag when invoking the `use_react_native` function. We need to set the `RCT_NEW_ACRH_ENABLED` even when the other method is used because we need to inject that flag into the codebase. ## Changelog [iOS][Fixed] Make sure to turn on the `RCT_NEW_ACRH_ENABLED` flag Reviewed By: cortinico Differential Revision: D39430904 fbshipit-source-id: abb55642b4c72d7dec8b045fb4a43c1763f0ee0f
Summary:
Users can enable the New Architecture on iOS in two way: using the
RCT_NEW_ACRH_ENABLED
env variable or setting thenew_arch_enabled
flag when invoking theuse_react_native
function.We need to set the
RCT_NEW_ACRH_ENABLED
even when the other method is used because we need to inject that flag into the codebase.Changelog
[iOS][Fixed] Make sure to turn on the
RCT_NEW_ACRH_ENABLED
flagDifferential Revision: D39430904