-
Notifications
You must be signed in to change notification settings - Fork 902
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
Add a field for newArchEnabled
and hermesEnabled
in react-native info
#1809
Comments
Good idea, let's do it |
Hi @cortinico |
Hi @adamTrz, trying to answer for the iOS related part. Currently, there isn't an easy way to do so, unfortunately, but we can easily build it if needed.
I understand that it is not ideal. We can update the Cocoapods scripts to write those information somewhere that it is confortable for you to read. What do you think would be the best? |
Thanks for reply @cipolleschi :) Maybe a solution would be to leverage WDYT? Edit: Also noticed that currently by default we're reading flags from |
I understand the use case. I have two concerns if we just add a configuration file (of any kind) in the current situation:
I think we can live with 2, honestly, as we can't really make all the changes backward compatible and, as soon as we release 0.75, all the supported versions of React Native would have that information. For 1. we need to do some more work to make it reliable. Specifically, we should also hide the Honestly, I really like this approach. It would streamline the experience of our users and I think that the @cortinico what do you think about this? |
Super into it, big fan of one source of truth. Granted, it would require some work to be done but then users would have an option to opt-in or out of extra features in one place and not to jump between files or set some env variables. |
My 2 cents here. Yes this would definitely help and simplify the implementation. If RFC588 goes through, our tooling will have to be adapted to account for that. On the other hand, this feature for I would not mix the implementation details of |
@cortinico I think that the main concern here is how to retrieve those information in case I think that the algorithm should go in this way:
|
Yup your algo makes sense to me @cipolleschi 👍
I would rather report "value not found" or something similar rather than a default. The |
Describe the Feature
As the title says, it would be great to add a field for
newArchEnabled
andhermesEnabled
inreact-native info
. We receive several issue reports on facebook/react-native and most of the time we need to ask if Hermes/NewArch has been enabled or disabled. Would be great to have it from theinfo
command.Possible Implementations
Ideally we should have it split between Android & iOS
Android: read from the
android/gradle.propreties
fileiOS: read from the
ios/Podfile
file.The text was updated successfully, but these errors were encountered: