-
Notifications
You must be signed in to change notification settings - Fork 2
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
Where/how to set flags on Podfile on 0.68.0? #193
Comments
Hi , You can try this command. |
this will enable Hermes and fabric. |
i got this error: |
Hey, you can just not use flags? I mean, these are changes so impactful that I don't see a need to use flags here, just set it manually to either true or false a no bothering if your flag is passed from CLI. Looks cleaner than having some |
thanks, i removed flag then it's work. |
What about when using fastlane; https://docs.fastlane.tools/actions/cocoapods/ |
i think it may be included i react-native 0.69. there is a rc release available on react-native-upgrade-helper: https://react-native-community.github.io/upgrade-helper/?from=0.68.1&to=0.69.0-rc.0 there is a new though this file has no edit: i just tried adding the
at the bottom, to see if it enables hermes. hermes is still false for me. i also tried to add
to me |
maybe someone has already seen it, but i posted in the react-native repo asking for clarification: facebook/react-native-website#3105 and a pr was made by someone from the react-native team: facebook/react-native-website#3109 so basically, it seems the default flags are just that, default values. if you want to change the value you dont have to edit the flag values anywhere, you just write so i believe that closes this issue. |
you're right @efstathiosntonas this has caused some confusion we've just recently added to the template and website
where 0.68 adds/sets the below internally (not in 0.67.0) # 0.68-stable: react-native/scripts/react_native_pods.rb
def get_default_flags()
flags = {
:fabric_enabled => false,
:hermes_enabled => false,
}
if ENV['RCT_NEW_ARCH_ENABLED'] == '1'
flags[:fabric_enabled] = true
flags[:hermes_enabled] = true
end
return flags
end
# GitHub doesn't format permalink markdown to other repos
# So here's the snippet above so and our new |
In the podfile, a better comment explaining how to enable hermes could also help to clarify this confussion. Instead of
replace with
Or maybe another line stating that |
Just dug into the source code https://github.com/facebook/react-native/blob/v0.69.0-rc.6/scripts/react_native_pods.rb#L135, the correct way to enable
Of course you can replace |
BTW, what is |
Environment
not possible to get environment info, I'm using a yarn monorepo.
Things I’ve done to figure out my issue
Upgrading version
0.67.3 to 0.68.0
Description
According to upgrade-helper we must make these changes on
Podfile
Question is, how we set these flags? After running
pod install
hermes is removed since the default value forhermes_enabled
is false(?). Is there a step missing onupgrade-helper
?The text was updated successfully, but these errors were encountered: