Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

cipolleschi
Copy link
Contributor

Summary:
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

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner fb-exported labels Sep 13, 2022
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D39430904

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D39430904

cipolleschi pushed a commit to cipolleschi/react-native that referenced this pull request Sep 13, 2022
…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
…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
@facebook-github-bot
Copy link
Contributor

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"
Copy link
Contributor

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.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @cipolleschi in f31134a.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Sep 14, 2022
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants